def openClicked(self): if self.fileList.currentIndex().row() != -1: info = {'project_id':str(self.projectInfo[0]['id']),'entity_type':self.selectedType, 'entity_id':str(self.entityInfo[0]['id']),'task_id':str(self.taskInfo[0]['id'])} xml.writeSelectedFile(info) self.openSelectedFile() self.close() else: Msg().showDialog(self.warning,suggestion.warning,suggestion.clickedFailed,suggestion.selectWorkFile)
def newClicked(self): info = {'project_id':str(self.projectInfo[0]['id']),'entity_type':self.selectedType, 'entity_id':str(self.entityInfo[0]['id']),'task_id':str(self.taskInfo[0]['id'])} xml.writeSelectedFile(info) cmds.file(new = True,force = True) self.close()