2014-07-16, 16:30
I'm using runscript in my custom window xml to execute this "notificationwindow.py" script.
My python script contents is:
When I entered in the custom_notifications.xml, I got the following log
I my attribute self.handle must be 17 correctly? But I got the error: list index out of range
The thread id it's only available if I run a plugin with Runplugin() function?
Code:
<onload>Runscript("special://home/addons/service.notifications/NotificationWindow.py")</onload>
My python script contents is:
Code:
self.handle = int(sys.argv[1])
li1 = xbmcgui.ListItem('Item Adicionado 1')
xbmcplugin.addDirectoryItem(self.handle, 'url://???', li1, False, totalItems=1)
xbmcplugin.endOfDirectory(handle=self.handle, succeeded=True)
When I entered in the custom_notifications.xml, I got the following log
Code:
1:23:54 T:139815036807104 DEBUG: ------ Window Init (custom_notifications.xml) ------
11:23:54 T:139815036807104 DEBUG: ExecuteXBMCAction : Translating Runscript("special://home/addons/service.notifications/NotificationWindow.py")
11:23:54 T:139815036807104 DEBUG: ExecuteXBMCAction : To Runscript("special://home/addons/service.notifications/NotificationWindow.py")
11:23:54 T:139815036807104 INFO: initializing python engine.
11:23:54 T:139815036807104 DEBUG: new python thread created. [b]id=17[/b]
11:23:54 T:139813525124864 NOTICE: Thread XBPyThread start, auto delete: false
11:23:54 T:139813525124864 DEBUG: Python thread: start processing
I my attribute self.handle must be 17 correctly? But I got the error: list index out of range
The thread id it's only available if I run a plugin with Runplugin() function?