Beispiel #1
0
 def create_new_project(self):
     """Create new project"""
     active_project = self.current_active_project
     dlg = ProjectDialog(self)
     dlg.sig_project_creation_requested.connect(self._create_project)
     dlg.sig_project_creation_requested.connect(self.sig_project_created)
     if dlg.exec_():
         pass
         if active_project is None:
             self.show_explorer()
         self.pythonpath_changed.emit()
         self.restart_consoles()
Beispiel #2
0
 def create_new_project(self):
     """Create new project"""
     active_project = self.current_active_project
     dlg = ProjectDialog(self)
     dlg.sig_project_creation_requested.connect(self._create_project)
     dlg.sig_project_creation_requested.connect(self.sig_project_created)
     if dlg.exec_():
         pass
         if active_project is None:
             self.show_explorer()
         self.pythonpath_changed.emit()
         self.restart_consoles()
Beispiel #3
0
 def create_new_project(self):
     """Create new project"""
     active_project = self.current_active_project
     dlg = ProjectDialog(self)
     dlg.sig_project_creation_requested.connect(self._create_project)
     dlg.sig_project_creation_requested.connect(self.sig_project_created)
     if dlg.exec_():
         if (active_project is None
                 and self.get_option('visible_if_project_open')):
             self.show_explorer()
         self.sig_pythonpath_changed.emit()
         self.restart_consoles()
def projects_dialog(qtbot):
    """Set up ProjectDialog."""
    dlg = ProjectDialog(None)
    qtbot.addWidget(dlg)
    return dlg