2004-06-10, 07:36
hey,
i'm having trouble with a looping gui program. it's not updating the screen and i believe the problem is that i've ported a tkinter python gui over to the xbmcui.
for the most part, things are working. actually, for anyone else building tkinter versions of xbox scripts to test on the pc, i highly recommend using the canvas object for everything. you can use the same coordinates and widths for items, and the create_image function is very similar in structure to the xbmcgui controlimage.
ehh. way off track. my point is, where i used self.after() for all my delayed calls in the tkinter script, there is no self.after() in xbmcgui (apparently). anyone have any suggested workarounds that would keep the script running while delaying a function call? time.sleep(), of course, delays the whole script.
also, if there's not an easy way to script in a self.after(), does anyone know a function call to force an xbmcgui update?
thanks for any help.
i'm having trouble with a looping gui program. it's not updating the screen and i believe the problem is that i've ported a tkinter python gui over to the xbmcui.
for the most part, things are working. actually, for anyone else building tkinter versions of xbox scripts to test on the pc, i highly recommend using the canvas object for everything. you can use the same coordinates and widths for items, and the create_image function is very similar in structure to the xbmcgui controlimage.
ehh. way off track. my point is, where i used self.after() for all my delayed calls in the tkinter script, there is no self.after() in xbmcgui (apparently). anyone have any suggested workarounds that would keep the script running while delaying a function call? time.sleep(), of course, delays the whole script.
also, if there's not an easy way to script in a self.after(), does anyone know a function call to force an xbmcgui update?
thanks for any help.