def set_language(language): global WinHoloSelect, winHoloMain, __addon__, __cwd__, __holo__, _ time.sleep(0.3) __addon__ = None __cwd__ = None __holo__ = None _ = None winHoloMain = None xbmc.executebuiltin('xbmc.SetGUILanguage(' + language + ')') time.sleep(1) __addon__ = xbmcaddon.Addon(id=__scriptid__) __cwd__ = __addon__.getAddonInfo('path') __holo__ = sys.modules[globals()['__name__']] _ = __addon__.getLocalizedString load_modules() winHoloMain = holoWindows.wizard('wizard.xml', __cwd__, 'Default', holoMain=__holo__) winHoloMain.doModal() winHoloMain = None del winHoloMain
def openWizard(): global winHoloMain, __cwd__, __holo__ try: winHoloMain = holoWindows.wizard('wizard.xml', __cwd__, 'Default', holoMain=__holo__) winHoloMain.doModal() winHoloMain = holoWindows.mainWindow('mainWindow.xml', __cwd__, 'Default', holoMain=__holo__) # None except Exception, e: xbmc.executebuiltin('Dialog.Close(busydialog)') dbg_log('holo::openWizard', 'ERROR: (' + repr(e) + ')')
attrs = self._get_attributes() a_names = attrs.keys() a_names.sort() for a_name in a_names: writer.write(' %s="' % a_name) minidom._write_data(writer, attrs[a_name].value) writer.write('"') if self.childNodes: if len(self.childNodes) == 1 and self.childNodes[0].nodeType \ == minidom.Node.TEXT_NODE: writer.write('>') self.childNodes[0].writexml(writer, '', '', '') writer.write('</%s>%s' % (self.tagName, newl)) return writer.write('>%s' % newl) for node in self.childNodes: if node.nodeType is not minidom.Node.TEXT_NODE: node.writexml(writer, indent + addindent, addindent, newl) writer.write('%s</%s>%s' % (indent, self.tagName, newl)) else: writer.write('/>%s' % newl) minidom.Element.writexml = fixed_writexml if read_setting('holovisi', 'wizard_completed') is None: winHoloMain = holoWindows.wizard('wizard.xml', __cwd__, 'Default', holoMain=__holo__)
a_names = attrs.keys() a_names.sort() for a_name in a_names: writer.write(' %s="' % a_name) minidom._write_data(writer, attrs[a_name].value) writer.write('"') if self.childNodes: if len(self.childNodes) == 1 and self.childNodes[0].nodeType \ == minidom.Node.TEXT_NODE: writer.write('>') self.childNodes[0].writexml(writer, '', '', '') writer.write('</%s>%s' % (self.tagName, newl)) return writer.write('>%s' % newl) for node in self.childNodes: if node.nodeType is not minidom.Node.TEXT_NODE: node.writexml(writer, indent + addindent, addindent, newl) writer.write('%s</%s>%s' % (indent, self.tagName, newl)) else: writer.write('/>%s' % newl) minidom.Element.writexml = fixed_writexml if read_setting('holovisi', 'wizard_completed') is None: winHoloMain = holoWindows.wizard('wizard.xml', __cwd__, 'Default', holoMain=__holo__)