def load(self, import_=False): if self.abortOnModified(): return if import_: path = xbmcgui.Dialog().browse(1, T(32521, 'Select File'), 'files', '*.cvseq', False, False) if not path: return else: selection = cvutil.selectSequence() if not selection: return path = selection['path'] self._load(path) sep = cinemavision.util.getSep(path) self.path, name = path.rsplit(sep, 1) self.path += sep self.setName(name.rsplit('.', 1)[0]) self.saveDefault()
def selectSequence(self): selection = cvutil.selectSequence() if not selection: return self.sequencePath = selection['path'] self.getControl(self.SEQUENCE_SELECT_ID).setLabel(selection['name'])
def selectSequence(self): selection = cvutil.selectSequence(active=False, for_dialog=True) if not selection: return self.sequencePath = selection['path'] self.getControl(self.SEQUENCE_SELECT_ID).setLabel(selection['name'])
def selectSequence(self): selection = cvutil.selectSequence() if not selection: return self.sequencePath = selection['path'] self.getControl(self.SEQUENCE_SELECT_ID).setLabel(selection['name'])
def load(self, import_=False): if self.abortOnModified(): return if import_: path = xbmcgui.Dialog().browse(1, T(32521, 'Select File'), 'files', '*.cvseq', False, False) if not path: return else: selection = cvutil.selectSequence() if not selection: return path = selection['path'] self._load(path) sep = cinemavision.util.getSep(path) self.path, name = path.rsplit(sep, 1) self.path += sep self.setName(name.rsplit('.', 1)[0]) self.saveDefault()
def setDefaultSequence(setting): import cvutil selection = cvutil.selectSequence() if not selection: return kodiutil.setSetting(setting, selection['name'])