def add_path_to_search_item(self): itemdir = getexistingdirectory(self, 'Select Directory Containing Projects') if itemdir: add_project_directory(itemdir) write_project_settings() self.set_items(projects())
def new_project(): project_creator = CreateProjectWidget() dialog = ModalDialog(project_creator) if dialog.exec_(): project = project_creator.project() project.save() write_project_settings() return project