Пример #1
0
    def selectionCallback(self, selection):      
        self.subComponent = None

        if(selection is not None):
            self.entryList[self.currentIndex]["options"]["selection"] = selection
            ResumeHandler.setLastSelectedLine(self.currentIndex)
            self.callback(self.entryList[self.currentIndex]["options"])
Пример #2
0
 def onSelect(self):
     if(len(self.entryList) > 0):            
         if("selector" in self.entryList[self.currentIndex]["options"] and self.entryList[self.currentIndex]["options"]["selector"]):              
             self.openSelection()
         else:
             ResumeHandler.setLastSelectedLine(self.currentIndex)
             self.callback(self.entryList[self.currentIndex]["options"])                    
Пример #3
0
    def onSelect(self):
        if(len(self.entryList) == 0):
            self.callback(None)
            return

        if(self.entryList[self.currentIndex]["isFolder"]):
            self.loadFolder(self.entryList[self.currentIndex])
        else:
            ResumeHandler.setLastSelectedLine(self.currentIndex)
            ResumeHandler.setLastPath(os.path.normpath(self.currentPath + "/"))
            self.callback(os.path.normpath(self.currentPath + "/" + self.entryList[self.currentIndex]["name"]))