Actions for app_menu (report bug, show about electrum, quit app)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
QDialog
|
#main_window
|
||||||
{
|
{
|
||||||
background-image: url(data/background.png);
|
background-image: url(data/background.png);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,8 +42,17 @@ class MiniWindow(QDialog):
|
|||||||
interact_button.setObjectName("interact_button")
|
interact_button.setObjectName("interact_button")
|
||||||
|
|
||||||
app_menu = QMenu()
|
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)
|
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 = IconButton("data/icons/expand.png")
|
||||||
expand_button.setObjectName("expand_button")
|
expand_button.setObjectName("expand_button")
|
||||||
|
|
||||||
@@ -141,6 +150,14 @@ class MiniWindow(QDialog):
|
|||||||
else:
|
else:
|
||||||
self.valid_address.setChecked(False)
|
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):
|
class BalanceLabel(QLabel):
|
||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user