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_()
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)