コード例 #1
0
def main():
    kodiutil.checkAPILevel()
    kodiutil.setScope()
    kodiutil.setGlobalProperty('VERSION', kodiutil.ADDON.getAddonInfo('version'))
    kodiutil.LOG('Sequence editor: OPENING')
    SequenceEditorWindow.open()
    kodiutil.LOG('Sequence editor: CLOSED')
コード例 #2
0
ファイル: main.py プロジェクト: camster1/RTOTV
import os

import xbmcgui
import xbmcvfs

import kodiutil
import kodigui

from kodiutil import T

kodiutil.LOG('Version: {0}'.format(kodiutil.ADDON.getAddonInfo('version')))

kodiutil.checkAPILevel()

import cvutil  # noqa E402

from lib import cinemavision  # noqa E402


class ItemSettingsWindow(kodigui.BaseDialog):
    xmlFile = 'script.cinemavision-sequence-item-settings.xml'
    path = kodiutil.ADDON_PATH
    theme = 'Main'
    res = '1080i'

    SETTINGS_LIST_ID = 300
    SLIDER_ID = 401

    def __init__(self, *args, **kwargs):
        kodigui.BaseDialog.__init__(self, *args, **kwargs)
        self.main = kwargs['main']
コード例 #3
0
import experience
import kodiutil
import cvutil
import kodigui
import xbmc
import xbmcgui

from kodiutil import T

kodiutil.checkAPILevel()

CHANNEL_STRINGS = {
    0: '0.0',
    1: '1.0',
    2: '2.0',
    3: '2.1',
    4: '4.0',
    5: '4.1',
    6: '5.1',
    7: '6.1',
    8: '7.1',
    10: '9.1',
    12: '11.1'
}

CODEC_IMAGES = ('aac', )


def showNoFeaturesDialog():
    import xbmcgui
    xbmcgui.Dialog().ok(