Esempio n. 1
0
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) + ')')
Esempio n. 2
0
def openConfigurationWindow():

    global winHoloMain, __cwd__, __holo__, dictModules

    try:

        winHoloMain = holoWindows.mainWindow('mainWindow.xml', __cwd__,
                'Default', holoMain=__holo__)
        winHoloMain.doModal()

        for strModule in dictModules:
            dictModules[strModule].exit()
            
        winHoloMain = None
        del winHoloMain
        
    except Exception, e:
        xbmc.executebuiltin('Dialog.Close(busydialog)')
        dbg_log('holo::openConfigurationWindow', 'ERROR: (' + repr(e) + ')')
Esempio n. 3
0
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) + ')')
Esempio n. 4
0
def openConfigurationWindow():

    global winHoloMain, __cwd__, __holo__, dictModules

    try:

        winHoloMain = holoWindows.mainWindow('mainWindow.xml',
                                             __cwd__,
                                             'Default',
                                             holoMain=__holo__)
        winHoloMain.doModal()

        for strModule in dictModules:
            dictModules[strModule].exit()

        winHoloMain = None
        del winHoloMain

    except Exception, e:
        xbmc.executebuiltin('Dialog.Close(busydialog)')
        dbg_log('holo::openConfigurationWindow', 'ERROR: (' + repr(e) + ')')
Esempio n. 5
0
                'lib')))
sys.path.append(xbmc.translatePath(os.path.join(__cwd__, 'resources',
                'lib', 'modules')))

## set default encoding

encoding = locale.getpreferredencoding(do_setlocale=True)
reload(sys)
# sys.setdefaultencoding(encoding)
sys.setdefaultencoding('utf-8')

## load holoSettings modules

import holoWindows

winHoloMain = holoWindows.mainWindow('mainWindow.xml', __cwd__, 'Default', holoMain=__holo__)

xbmc.log('## HoloVisi Addon ## ' + str(__addon__.getAddonInfo('version')))


def dbg_log(source, text, level=4):
    xbmc.log('## HoloVisi Addon ## ' + source + ' ## ' + text, level)
    xbmc.log(traceback.format_exc())


def set_language(language):

    global WinHoloSelect, winHoloMain, __addon__, __cwd__, __holo__, _

    time.sleep(0.3)
Esempio n. 6
0
sys.path.append(
    xbmc.translatePath(os.path.join(__cwd__, 'resources', 'lib', 'modules')))

## set default encoding

encoding = locale.getpreferredencoding(do_setlocale=True)
reload(sys)
# sys.setdefaultencoding(encoding)
sys.setdefaultencoding('utf-8')

## load holoSettings modules

import holoWindows

winHoloMain = holoWindows.mainWindow('mainWindow.xml',
                                     __cwd__,
                                     'Default',
                                     holoMain=__holo__)

xbmc.log('## HoloVisi Addon ## ' + str(__addon__.getAddonInfo('version')))


def dbg_log(source, text, level=4):
    xbmc.log('## HoloVisi Addon ## ' + source + ' ## ' + text, level)
    xbmc.log(traceback.format_exc())


def set_language(language):

    global WinHoloSelect, winHoloMain, __addon__, __cwd__, __holo__, _

    time.sleep(0.3)