Beispiel #1
0
 def prompt_projects(self):
     projects_list = [
         project.get('title') for project in self.get_projects().values()
     ]
     projects_list.insert(0,
                          ['New project', 'creates a new scripts project'])
     SublimeHelper.show_list_panel(projects_list, self.project_selected)
    def prompt_files(self, project):
        files = self.browser.files(project.get('id'))
        files_list = [self.get_full_filename(file) for file in files]
        files_list.insert(0, ['Back to projects', 'Back to project list'])
        files_list.insert(1, ['New file', 'creates a new script in the project %s' % project.get('title')])

        def callback(index):
            self.file_selected(index, files, project)

        SublimeHelper.show_list_panel(files_list, callback)
Beispiel #3
0
    def prompt_files(self, project):
        files = self.browser.files(project.get('id'))
        files_list = [self.get_full_filename(file) for file in files]
        files_list.insert(0, ['Back to projects', 'Back to project list'])
        files_list.insert(1, [
            'New file',
            'creates a new script in the project %s' % project.get('title')
        ])

        def callback(index):
            self.file_selected(index, files, project)

        SublimeHelper.show_list_panel(files_list, callback)
 def prompt_projects(self):
     projects_list = [project.get('title') for project in self.get_projects().values()]
     projects_list.insert(0, ['New project', 'creates a new scripts project'])
     SublimeHelper.show_list_panel(projects_list, self.project_selected)