Пример #1
0
 def display_list(self, installed):
     self.status.stop()
     if not installed:
         status.error('No packages installed! Please install some first.')
         return
     self.list = installed
     self.window.show_quick_panel(self.list, self.on_select)
Пример #2
0
 def display_list(self, installed):
     self.status.stop()
     if not installed:
         status.error('No packages installed! Please install some first.')
         return
     self.list = installed
     self.window.show_quick_panel(self.list, self.on_select)
Пример #3
0
 def install_success(self, success):
     self.status.stop()
     if success:
         status.message('Package installed successfully!')
     else:
         status.error(
             'Package install was unsuccessful. Please check console.')
Пример #4
0
 def display_list(self, installed):
     self.status.stop()
     if not installed:
         status.error('No packages installed! Please install some first.')
         return
     allPackage = 'Update all packages'
     self.list = [allPackage]
     self.list.extend(installed)
     print(self.list)
     self.window.show_quick_panel(self.list, self.on_select)
Пример #5
0
 def display_list(self, repo):
     self.status.stop()
     if not repo:
         status.error('Package list not found. Please check internet ' +
                      'connection or enable debug in the settings and ' +
                      'report the stack traces.')
         return
     self.repo = repo
     self.list = repo.list()
     self.window.show_quick_panel(self.list, self.on_select)
Пример #6
0
 def display_list(self, repo):
     self.status.stop()
     if not repo:
         status.error('Package list not found. Please check internet ' +
                      'connection or enable debug in the settings and ' +
                      'report the stack traces.')
         return
     self.repo = repo
     self.list = repo.list()
     self.window.show_quick_panel(self.list, self.on_select)
Пример #7
0
 def display_list(self, installed):
     self.status.stop()
     if not installed:
         status.error('No packages installed! Please install some first.')
         return
     allPackage = 'Update all packages'
     self.list = [allPackage]
     self.list.extend(installed)
     print(self.list)
     self.window.show_quick_panel(self.list, self.on_select)
Пример #8
0
 def remove_success(self, success):
     self.status.stop()
     if success:
         status.message('Package removed.')
     else:
         status.error('Package removal was unsuccessful.')
Пример #9
0
 def install_success(self, success):
     self.status.stop()
     if success:
         status.message('Package installed successfully!')
     else:
         status.error('Package install was unsuccessful. Please check console.')
Пример #10
0
 def remove_success(self, success):
     self.status.stop()
     if success:
         status.message('Package removed.')
     else:
         status.error('Package removal was unsuccessful.')