예제 #1
0
파일: projects.py 프로젝트: 0xBADCA7/spyder
    def edit_project_preferences(self):
        """Edit Spyder active project preferences"""
        from spyder.widgets.projects.configdialog import ProjectPreferences
        if self.project_active:
            active_project = self.project_list[0]
            dlg = ProjectPreferences(self, active_project)
#            dlg.size_change.connect(self.set_project_prefs_size)
#            if self.projects_prefs_dialog_size is not None:
#                dlg.resize(self.projects_prefs_dialog_size)
            dlg.show()
#        dlg.check_all_settings()
#        dlg.pages_widget.currentChanged.connect(self.__preference_page_changed)
            dlg.exec_()
예제 #2
0
def projects_preferences(qtbot):
    """Set up ProjectPreferences."""
    project_dir = tempfile.mkdtemp() + osp.sep + '.spyproject'
    project = EmptyProject(project_dir)
    project_preferences = ProjectPreferences(None, project)
    qtbot.addWidget(project_preferences)
    return (project, project_preferences)
예제 #3
0
 def edit_project_preferences(self):
     """Edit Spyder active project preferences"""
     from spyder.widgets.projects.configdialog import ProjectPreferences
     if self.project_active:
         active_project = self.project_list[0]
         dlg = ProjectPreferences(self, active_project)
         #            dlg.size_change.connect(self.set_project_prefs_size)
         #            if self.projects_prefs_dialog_size is not None:
         #                dlg.resize(self.projects_prefs_dialog_size)
         dlg.show()
         #        dlg.check_all_settings()
         #        dlg.pages_widget.currentChanged.connect(self.__preference_page_changed)
         dlg.exec_()