def showComboDialog(title): ui= ComboWinXML("DialogCode.xml", __addonpath__, "default", title) common.closeProgressDialogIfOpen() ui.doModal() if (ui.ok): code = ui.code else: code = None del ui return code
def showComboDialog(title): ui = ComboWinXML("DialogCode.xml", __addonpath__, "default", title) common.closeProgressDialogIfOpen() ui.doModal() if (ui.ok): code = ui.code else: code = None del ui return code
def closeProgressDialogIfInterfering(): pythonWindow = None pythonWindowId=13000 try: pythonWindow=xbmcgui.Window(pythonWindowId) except: pass #window not found if pythonWindow: xmlfile = pythonWindow.getProperty('xmlfile') codeDialogIsUp = xmlfile and xmlfile.find('DialogCode.xml')>=0 if codeDialogIsUp: #close any other open dialogs so they don't interfere common.closeProgressDialogIfOpen()
def closeProgressDialogIfInterfering(): pythonWindow = None pythonWindowId = 13000 try: pythonWindow = xbmcgui.Window(pythonWindowId) except: pass #window not found if pythonWindow: xmlfile = pythonWindow.getProperty('xmlfile') codeDialogIsUp = xmlfile and xmlfile.find('DialogCode.xml') >= 0 if codeDialogIsUp: #close any other open dialogs so they don't interfere common.closeProgressDialogIfOpen()