コード例 #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
コード例 #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
コード例 #3
0
 def _on_backup_history(self, action, param):
     dialog = BackupHistoryDialog(self._window)
     dialog.run()
コード例 #4
0
ファイル: application.py プロジェクト: awamper/draobpilc
 def _on_backup_history(self, action, param):
     dialog = BackupHistoryDialog(self._window)
     dialog.run()