KaiToast Label

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
`Black Offline
Team-Kodi Member
Posts: 2,433
Joined: Apr 2009
Reputation: 72
Location: Germany
Post: #1
Hi,

I've created a python script which should save a notification in a sqlite database so that I can show a list with the recent notifications. But somehow I can't get the text from the label (401)... $INFO[Control.GetLabel(401)] seems only to work if its in a <label> or <texture> tag. I can't get it in python or set it as a window property, it's always empty. Tried it in other dialogs (e.g. progress dialog) and it's working there but not in kai toast. Is there maybe another possibility how I can grab the notification in python?

[Image: xp1080-21.png]
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,228
Joined: Oct 2003
Reputation: 177
Post: #2
The problem is the kai toast dialog is modeless, so you can't grab the control from the window.

What are you trying to do?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
`Black Offline
Team-Kodi Member
Posts: 2,433
Joined: Apr 2009
Reputation: 72
Location: Germany
Post: #3
I want to show a list with the 15 or 20 most recent notifications. For that I have a script which saves the label + current date in a sqlite database so that I can read the database on startup and set the newest entries as a window property (e.g. Window(Home).Propery(LatestNotification.1.Text). But since the label is always empty, I have no idea if it's even possible then...

[Image: xp1080-21.png]
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 26,228
Joined: Oct 2003
Reputation: 177
Post: #4
And why do you want to show a list with the last 15-20 notifications? What benefit exactly does it provide the users of the skin?

What I'm getting at is: Should XBMC be providing this information?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
`Black Offline
Team-Kodi Member
Posts: 2,433
Joined: Apr 2009
Reputation: 72
Location: Germany
Post: #5
I wanted to have something like a recent updates list for addons. As I'm showing only a little info icon without any information of the notification, I wanded to provide a small upadte history elsewhere in the skin for the user to check anytime if he's interested.

So yeah would be nice if XBMC could provide those infos but if it does they should be available anywhere in the skin. But for now it would be enough to get the notification label, my script works so far.

[Image: xp1080-21.png]
find quote