Kodi Community Forum
Manipulating a xml window from python - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Manipulating a xml window from python (/showthread.php?tid=187295)



Manipulating a xml window from python - ajlajlajl - 2014-02-23

hi
im new to xbmc, i've searched in internet and wasnt able to get a answaer to this

so i have a window, designed in xml, putted in 720p folder of my skin directory. with id 1231. it contains some controls like textbox, label and list.
now i want to modify my controls on that windows. by 'modify' i mean changing displaying text, and filling list control. from my python script, of course.
i saw a lot of example code on the net that created windows from script. but i have my xml windows and i want to manipulate them.
that's the scenario.

well, i stuck on first step Confused . i cant get the window object. this is my code:
PHP Code:
win xbmcgui.Window(1231
to get window, for further manipulations on controls, and it fails.
xbmc says: "script failed!" when i try to run it.

any help will be appreciated.
(a sub-question: script's can manipulate list controls? i read something about that they are not accessible for adding items or something ... )

best wishes


RE: Manipulating a xml window from python - ajlajlajl - 2014-03-06

thanks for help ...
i solved my problem by using WindowXML control