electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 6c626ad12392d5839d1e807bafccb1d964b4dfb3
parent 9139b71248fd114f141b085c3394a11730afc600
Author: Amir Taaki <genjix@riseup.net>
Date:   Fri, 29 Jun 2012 06:57:16 +0200

Actions for app_menu (report bug, show about electrum, quit app)

Diffstat:
Mdata/style.css | 2+-
Mlib/gui_lite.py | 17+++++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/data/style.css b/data/style.css @@ -1,4 +1,4 @@ -QDialog +#main_window { background-image: url(data/background.png); } diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -42,8 +42,17 @@ class MiniWindow(QDialog): interact_button.setObjectName("interact_button") app_menu = QMenu() + report_action = app_menu.addAction(_("&Report Bug")) + about_action = app_menu.addAction(_("&About Electrum")) + app_menu.addSeparator() + quit_action = app_menu.addAction(_("&Quit")) interact_button.setMenu(app_menu) + self.connect(report_action, SIGNAL("triggered()"), + self.show_report_bug) + self.connect(about_action, SIGNAL("triggered()"), self.show_about) + self.connect(quit_action, SIGNAL("triggered()"), self.close) + expand_button = IconButton("data/icons/expand.png") expand_button.setObjectName("expand_button") @@ -141,6 +150,14 @@ class MiniWindow(QDialog): else: self.valid_address.setChecked(False) + def show_about(self): + QMessageBox.about(self, "Electrum", + "Electrum's focus is speed, with low resource usage and simplifying Bitcoin. You do not need to perform regular backups, because your wallet can be recovered from a secret phrase that you can memorize or write on paper. Startup times are instant because it operates in conjuction with high-performance servers that handle the most complicated parts of the Bitcoin system.") + + def show_report_bug(self): + QMessageBox.information(self, "Electrum - Reporting Bugs", + "Email bug reports to %s@%s.net" % ("genjix", "riseup")) + class BalanceLabel(QLabel): def __init__(self, parent=None):