def deploy_version(self, version: str) -> ProjectSetup: project = ProjectSetup(self.project_config, version) success = project.setup() if success: print("Deployed version:", project.tag) return project else: print("Failed deploying version", project.tag) self.project_config.commit_failed(project.tag)
def onProjectSetup(self): # if DEBUG_MODE: print ">> MainWindow.onProjectSetup" projectSetupDlg = ProjectSetup(app_settings) projectSetupDlg.exec_() self.ui.project_ctl.setLibrary(app_global_vars['ProjectNetworks']) createDefaultProject(app_settings) self.setupWindowTitle() self.addRecentProject(app_global_vars['ProjectPath']) self.buildRecentProjectsMenu()
def onProjectSetup ( self ) : # if DEBUG_MODE : print ">> MainWindow.onProjectSetup" projectSetupDlg = ProjectSetup ( app_settings ) projectSetupDlg.exec_() self.ui.project_ctl.setLibrary ( app_global_vars [ 'ProjectNetworks' ] ) createDefaultProject ( app_settings ) self.setupWindowTitle () self.addRecentProject ( app_global_vars [ 'ProjectPath' ] ) self.buildRecentProjectsMenu ()
def onProjectSetup ( self ): print ">> MainWindow: onProjectSetup" projectSetupDlg = ProjectSetup ( app_settings ) projectSetupDlg.exec_() self.ui.project_ctl.setLibrary ( app_global_vars[ 'ProjectNetworks' ] )