2015-06-25, 15:02
I don't ^^
But I can imagine something :
onInit, you get the ID of your custom window and pass it to the Home windows in a variable
Then, you can get it in your window with window(home).property....
You also can pass the ID to the window it points :
I choose to use Home window because I'm not sure how to get property from self in XML... I found some $INFO[window.property(...)] on the Internet but can't achieve it
But I can imagine something :
onInit, you get the ID of your custom window and pass it to the Home windows in a variable
Then, you can get it in your window with window(home).property....
You also can pass the ID to the window it points :
Code:
self.window_id = xbmcgui.getCurrentWindowId()
self.window = xbmcgui.Window(self.window_id)
self.window.setProperty('myID', str(self.window_id))
I choose to use Home window because I'm not sure how to get property from self in XML... I found some $INFO[window.property(...)] on the Internet but can't achieve it