2024-08-30, 14:20
Hi all,
i have coded an extra window that gets initialized with:
That works great, within this new Window i can use "def onClick(self,controlId):" and "def onAction(self,action):" and the like to "capture" user inputs.
Now my question, is that also possible for the Home Window ID 10000?
I've already managed to have a Panel with ID 27400 in the Home Window, i can add Items to it with:
(Where items is a list of ListItems...)
But for these items in that Panel, how do i "capture" it when i click/focus them, just like i do with "onClick(self,controlId)" in an extra window?
In other words: How do i use functions like onClick that i can use in extra windows in _already existing_ windows like Window 10000(Home)?
If anyone could hint me to an examlpe plugin where this is done or something, it would great - i am sure its possible Thank YOU!
i have coded an extra window that gets initialized with:
Code:
def myWindow():
dialog = MyWindow('myWindow.xml', ADDON_PATH, 'default', '720p')
dialog.doModal()
del dialog
That works great, within this new Window i can use "def onClick(self,controlId):" and "def onAction(self,action):" and the like to "capture" user inputs.
Now my question, is that also possible for the Home Window ID 10000?
I've already managed to have a Panel with ID 27400 in the Home Window, i can add Items to it with:
Code:
xbmcgui.Window(10000).getControl(27400).addItems(items)
(Where items is a list of ListItems...)
But for these items in that Panel, how do i "capture" it when i click/focus them, just like i do with "onClick(self,controlId)" in an extra window?
In other words: How do i use functions like onClick that i can use in extra windows in _already existing_ windows like Window 10000(Home)?
If anyone could hint me to an examlpe plugin where this is done or something, it would great - i am sure its possible Thank YOU!