PDA

View Full Version : Numerical dialog on top of xbmc.Player()?


junk
2009-06-18, 17:10
I'm using

xbmc.Player().play("http://server")

to play a stream.

I want the user to be able to push a button (for example, "s") and receive this dialog ON TOP of the xbmc.Player().

nr = xbmcgui.Dialog().numeric(0,"Enter a number")

Currently, my onAction looks like this:

def onAction(self, action):
if action == 10: # ACTION_PREVIOUS_MENU
self.close()
elif action == 9: # ACTION_PARENT_DIR
nr = xbmcgui.Dialog().numeric(0,"Enter a number")

When I press Backspace when the stream is playing, I get back to a black screen. When I press backspace one more time (at this black screen which is the window created by my script) I get the correct dialogbox.

Is there anyway to make the dialog box appear on top of the player instead? Also, if I pressed backspace and would like to go back to the player (which is still on in the background somehow), how would I do that?

Thanks in advance!