def initConfig(self): self.projects = config.projects() self.recent = config.recent() self.dirty = [] if config.files() != None: for i in config.files(): self.createTab(i) self.tabWidget.tabCloseRequested.connect(self.closeTab) self.treeWidget.itemDoubleClicked.connect(self.ss)
def initProjects(self): if(config.projects() != None): if(len(config.projects()) != None): for pro in config.projects(): self.createProject(pro)