2016-02-23, 03:14
I'm fairly new to XBMC Gui development and I'm making slower progress than I'd like...
I've put together the a modal dialog (defined using XML) for my addon which shows some values in labels and I want the user to amend a value. I display the dialog using
The dialog pops up as expected.
I have a button which calls <onclick>XBMC.Skin.SetString(userVal)</onclick> and a label that displays the var 'userVal'. It functions as intended but the editor pops up underneath my dialog. I've tried setting
on my dialog but, for the life of me, I can't get the editor to be the uppermost window. Invoking the dialog using show() rather than doModal() doesn't make any difference... Any ideas on how to make the editor the topmost window would be appreciated
I've put together the a modal dialog (defined using XML) for my addon which shows some values in labels and I want the user to amend a value. I display the dialog using
Code:
class myDlg(xbmcgui.WindowXMLDialog):
def __init__(self,*args,**kwargs):
xbmcgui.WindowXMLDialog.__init__(self)
def onInit(self):
pass
def onAction(self,action):
if (action in ACTION_EXIT_SCRIPT):
self.close()
def onClick(self,controlId):
pass
def onFocus(self,controlId):
pass
ui = myDlg('signup.xml',xbmcaddon.Addon().getAddonInfo('path').decode('utf-8'),'Default')
ui.doModal();
The dialog pops up as expected.
I have a button which calls <onclick>XBMC.Skin.SetString(userVal)</onclick> and a label that displays the var 'userVal'. It functions as intended but the editor pops up underneath my dialog. I've tried setting
Code:
<zorder>0</zorder>