Exemplo n.º 1
0
    def initThreadData(self):
        xbmcMenu = menuThreads.menuThreads()
        params = {
            "url": "https://www.youtube.com/watch?v=Vw8ViaL7-m4",
            "regexp": 'onclick="location.href=\'(?P<videourl>.+?)\'"  value="Click Here to Play" />',
            "compflags": "re.DOTALL",
        }
        xbmcMenu.setThreadParams("media", params)

        xbmcMenu.lstChanged = []  # Se borra cualquier actualización del árbol
        # porque este en este punto no existe
        return xbmcMenu.getThreadData()
Exemplo n.º 2
0
    def initThreadData(self):
        xbmcMenu = menuThreads.menuThreads()
        params = {
            'url': 'https://www.youtube.com/watch?v=Vw8ViaL7-m4',
            'regexp':
            'onclick="location.href=\'(?P<videourl>.+?)\'"  value="Click Here to Play" />',
            'compflags': 're.DOTALL'
        }
        xbmcMenu.setThreadParams('media', params)

        xbmcMenu.lstChanged = []  # Se borra cualquier actualización del árbol
        # porque este en este punto no existe
        return xbmcMenu.getThreadData()
Exemplo n.º 3
0
 def __init__(self, theGlobals=None):
     tk.Toplevel.__init__(self)
     self.protocol("WM_DELETE_WINDOW", self.Close)
     self.perspectiveIndx = tk.StringVar(value=self.PERSPECTIVES[0])
     self.activeViewIndx = tk.StringVar()
     self.activeViewIndx.trace("w", self.setActiveView)
     self.leftPaneIndx = tk.IntVar(value=-1)
     self.leftPaneVisible = tk.BooleanVar()
     self.leftPaneVisible.trace("w", self.setLeftPaneVisibility)
     self.rightPaneIndx = tk.IntVar(value=-1)
     #         self.rightPaneIndx.trace("w", self.setRightPane)
     self.xbmcThreads = menuThreads.menuThreads()
     self.addonSettings = xmlFileWrapper.xmlFileWrapper("addonIdeSettingFile.xml")
     self.coder = addonCoder.Addoncoder(self.xbmcThreads, self.addonSettings)
     self.fileGenerator = FileGenerator.FileGenerator(self.addonSettings, self.xbmcThreads, self.coder)
     self.settings = {}
     self.setGUI()
     self.activeUrl.set("")
     self.newFile()
     self.currentFile = "default.pck"
     self.title(self.currentFile)
Exemplo n.º 4
0
 def __init__(self, theGlobals=None):
     tk.Toplevel.__init__(self)
     self.protocol('WM_DELETE_WINDOW', self.Close)
     self.perspectiveIndx = tk.StringVar(value=self.PERSPECTIVES[0])
     self.activeViewIndx = tk.StringVar()
     self.activeViewIndx.trace("w", self.setActiveView)
     self.leftPaneIndx = tk.IntVar(value=-1)
     self.leftPaneVisible = tk.BooleanVar()
     self.leftPaneVisible.trace("w", self.setLeftPaneVisibility)
     self.rightPaneIndx = tk.IntVar(value=-1)
     #         self.rightPaneIndx.trace("w", self.setRightPane)
     self.xbmcThreads = menuThreads.menuThreads()
     self.addonSettings = xmlFileWrapper.xmlFileWrapper(
         'addonIdeSettingFile.xml')
     self.coder = addonCoder.Addoncoder(self.xbmcThreads,
                                        self.addonSettings)
     self.fileGenerator = FileGenerator.FileGenerator(
         self.addonSettings, self.xbmcThreads, self.coder)
     self.settings = {}
     self.setGUI()
     self.activeUrl.set('')
     self.newFile()
     self.currentFile = 'default.pck'
     self.title(self.currentFile)
Exemplo n.º 5
0
 def __init__(self, theGlobals=None):
     tk.Toplevel.__init__(self)
     self.protocol('WM_DELETE_WINDOW', self.Close)
     self.setGUI(theGlobals)
     self.xbmcThreads = menuThreads.menuThreads()
     self.activeUrl = None
Exemplo n.º 6
0
 def __init__(self, theGlobals = None):
     tk.Toplevel.__init__(self)
     self.protocol('WM_DELETE_WINDOW', self.Close)
     self.setGUI(theGlobals)
     self.xbmcThreads = menuThreads.menuThreads()
     self.activeUrl = None