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)
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.')
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)
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)
def remove_success(self, success): self.status.stop() if success: status.message('Package removed.') else: status.error('Package removal was unsuccessful.')
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.')