예제 #1
0
 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())
예제 #2
0
def new_project():
    project_creator = CreateProjectWidget()
    dialog = ModalDialog(project_creator)
    if dialog.exec_():
        project = project_creator.project()
        project.save()
        write_project_settings()
        return project
예제 #3
0
파일: explorer.py 프로젝트: gbaty/openalea
 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())