2011-08-08, 12:05
Hello,
I'm still starting with XBMC development with WindowXML and Python, since i wanted to create a heavy GUI application/script (not an addon).. i was suggested to use WindowXML.
But the connection/relation between the XML skin file and the python script file is not yet clear.
I have managed so far to create a basic xml (skin) file and open it with python in XBMC and practice some of the WindowXML controls on the wiki but i have stumbled upon the FixedList Control since i wanted to create a list of items that scrolls this control seemed to be the perfect one but i can't add items to it dynamically from the python file,
for example if i gave the "fixedlist" control an id of "50" in the xml skin file, and in the python i did the following:
The change doesn't take effect inside XBMC when i enter my skin, although there was no error generated in xbmc.log
So i guess my question can be warped in "how to dynamically populate a fixedlist control or any other control that scrolls an list of items from the python file" since i want to connect that list to a back end db or something.
Thanks in advance.
I'm still starting with XBMC development with WindowXML and Python, since i wanted to create a heavy GUI application/script (not an addon).. i was suggested to use WindowXML.
But the connection/relation between the XML skin file and the python script file is not yet clear.
I have managed so far to create a basic xml (skin) file and open it with python in XBMC and practice some of the WindowXML controls on the wiki but i have stumbled upon the FixedList Control since i wanted to create a list of items that scrolls this control seemed to be the perfect one but i can't add items to it dynamically from the python file,
for example if i gave the "fixedlist" control an id of "50" in the xml skin file, and in the python i did the following:
Code:
def onInit(self):
scroller = self.getControl(50)
scroller.addItem("Item added from pytohn")
The change doesn't take effect inside XBMC when i enter my skin, although there was no error generated in xbmc.log
So i guess my question can be warped in "how to dynamically populate a fixedlist control or any other control that scrolls an list of items from the python file" since i want to connect that list to a back end db or something.
Thanks in advance.