2005-04-14, 17:44
hi there...
i've got a new problem
when my script starts, a keyboard gets popped up.
now i want the script not to go on (self.close()) in case that i cancel the keyboard.
i tried it with the following (in init):
does anybody have a solution for this?
thanks
[edit]
the code is at the end of the init().
the window is drawn completeley before the keyboard code.
[/edit]
i've got a new problem
when my script starts, a keyboard gets popped up.
now i want the script not to go on (self.close()) in case that i cancel the keyboard.
i tried it with the following (in init):
Quote: if keyboard_on_startup == 1:but it seems like the keyboard is opening prior the window, so it is not able to close the (not opened) window.
keyboard = xbmc.keyboard()
keyboard.domodal()
if (keyboard.isconfirmed()):
self.searchmovie(keyboard.gettext())
else:
self.close()
does anybody have a solution for this?
thanks
[edit]
the code is at the end of the init().
the window is drawn completeley before the keyboard code.
[/edit]