示例#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.')