Exemplo n.º 1
0
 def on_select(self, item_idx):
     if item_idx is NO_SELECTION:
         status.message('Package install canceled.')
         return
     p = self.list[item_idx][0]
     self.status = status.loading('Installing package: %s' % p)
     commands.install_package(p, self.repo, self.install_success)
Exemplo n.º 2
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.')
Exemplo n.º 3
0
 def on_select(self, item_idx):
     if item_idx is NO_SELECTION:
         status.message('Package install canceled.')
         return
     p = self.list[item_idx][0]
     self.status = status.loading('Installing package: %s' % p)
     commands.install_package(p, self.repo, self.install_success)
Exemplo n.º 4
0
 def remove_success(self, success):
     self.status.stop()
     if success:
         status.message('Package removed.')
     else:
         status.error('Package removal was unsuccessful.')
Exemplo n.º 5
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.')
Exemplo n.º 6
0
 def remove_success(self, success):
     self.status.stop()
     if success:
         status.message('Package removed.')
     else:
         status.error('Package removal was unsuccessful.')