def remove(self, *args):
"""
Remove an account
"""
message = _('Do you really want to remove "%s"?' %
self.account.get_name())
confirmation = ConfirmationMessage(self.window, message)
confirmation.show()
if confirmation.get_confirmation():
self.window.notification.set_message(
_('"%s" was removed' % self.account.get_name()))
self.window.notification.set_undo_action(self.undo_remove)
self.window.notification.show()
self.remove_timer = self.window.notification.timeout
GLib.timeout_add_seconds(1, self.update_remove_countdown)
confirmation.destroy()
account_row.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录