示例#1
0
 def __init__(self, *args, **kwargs):
     self.action_exitkeys_id = [10, 13]
     self.progress_control = None
     if OS_MACHINE[0:5] == 'armv7':
         WindowXMLDialog.__init__(self)
     else:
         WindowXMLDialog.__init__(self, *args, **kwargs)
示例#2
0
 def __init__(self, *args):
     WindowXMLDialog.__init__(self, args)
     self.closing_actions = [9, 10, 13, 92]
     self.selection_actions = [7, 100]
     self.context_actions = [101, 117]
     self.info_actions = [
         11,
     ]
示例#3
0
    def __init__(self, *args, **kwargs):
        self.intro_end = kwargs.pop('intro_end', None)

        self._showing = False
        self._on_hold = False

        logger.debug('SkipIntroDialog initialized, ends at %s', self.intro_end)
        WindowXMLDialog.__init__(self, *args, **kwargs)
示例#4
0
 def __init__(self,
              xml_filename,
              script_path,
              default_skin="Default",
              default_res="720p",
              *args,
              **kwargs):
     self.log = utils.Log()
     WindowXMLDialog.__init__(self)
示例#5
0
    def __init__(self,
                 xmlFilename,
                 scriptPath,
                 defaultSkin='Default',
                 defaultRes='720p'):
        self.button_close = None
        self.button_close_glow = None
        self.button_close_id = None
        self.button_run = None
        self.button_run_glow = None
        self.button_run_id = None
        self.dl_textbox = None
        self.dlul_prog_textbox = None
        self.image_dir = translatePath(
            os.path.join(addon_path(), 'resources', 'skins', 'Default',
                         'media'))
        self.image_background = None
        self.image_shadow = None
        self.image_progress = None
        self.image_ping = None
        self.image_ping_glow = None
        self.image_gauge = None
        self.image_gauge_arrow = None
        self.image_button_run = None
        self.image_button_run_glow = None
        self.image_speedtestresults = None
        self.image_centertext_testingping = None
        self.image_result = None
        self.img_centertext = None
        self.img_final_results = None
        self.img_gauge = None
        self.img_gauge_arrow = None
        self.img_ping = None
        self.img_ping_glow = None
        self.img_progress = None
        self.img_results = None
        self.ping_textbox = None
        self.please_wait_textbox = None
        self.rec_speed = None
        self.screenx = 1920
        self.screeny = 1080
        self.textbox = None
        self.ul_textbox = None

        if sys.version_info.major == 2:
            WindowXMLDialog.__init__(self, xmlFilename, scriptPath,
                                     defaultSkin, defaultRes)  # pylint: disable=non-parent-init-called
            self.doModal()
        elif sys.version_info.major == 3:
            super().__init__(xmlFilename, scriptPath, defaultSkin, defaultRes)  # pylint: disable=missing-super-argument
示例#6
0
 def __init__(self, *args, **kwargs):
     WindowXMLDialog.__init__(self, *args, **kwargs)
     #xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
     self.exit_callback = kwargs.get("exit_callback")
 def __init__(self, *args, **kwargs):
     WindowXMLDialog.__init__(self, *args, **kwargs)
     #xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
     self.exit_callback = kwargs.get("exit_callback")
示例#8
0
 def __init__(self, xml_filename, script_path, default_skin="Default", default_res="720p", *args, **kwargs):
     self.log = utils.Log()
     WindowXMLDialog.__init__(self)
示例#9
0
 def __init__(self, *args, **kwargs):
   if self.OS_MACHINE[0:5] == 'armv7':
     WindowXMLDialog.__init__(self)
   else:
     WindowXMLDialog.__init__(self, *args, **kwargs)