Exemplo n.º 1
0
 def _on_item_action(self, histories_manager_item, action):
     if action == ItemAction.EMPTY:
         gpaste_client.empty_history(histories_manager_item.name)
         self.update()
     elif action == ItemAction.DELETE:
         gpaste_client.delete_history(histories_manager_item.name)
     elif action == ItemAction.BACKUP:
         dialog = BackupHistoryDialog(self.get_toplevel(),
                                      histories_manager_item.name)
         dialog.run()
     else:
         pass
Exemplo n.º 2
0
 def _on_item_action(self, histories_manager_item, action):
     if action == ItemAction.EMPTY:
         gpaste_client.empty_history(histories_manager_item.name)
         self.update()
     elif action == ItemAction.DELETE:
         gpaste_client.delete_history(histories_manager_item.name)
     elif action == ItemAction.BACKUP:
         dialog = BackupHistoryDialog(
             self.get_toplevel(),
             histories_manager_item.name
         )
         dialog.run()
     else:
         pass
Exemplo n.º 3
0
 def _on_backup_history(self, action, param):
     dialog = BackupHistoryDialog(self._window)
     dialog.run()
Exemplo n.º 4
0
 def _on_backup_history(self, action, param):
     dialog = BackupHistoryDialog(self._window)
     dialog.run()