electrum

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

commit e7e0b80ca8a606ce6443195042dc4a55f1eb3389
parent 743f846ae9a3cea3e160261fb5f2b5bc9bc17309
Author: Amir Taaki <genjix@riseup.net>
Date:   Thu,  5 Jul 2012 17:52:33 +0200

set a window title for the popup and some other things.

Diffstat:
Mlib/gui_lite.py | 17+++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -402,17 +402,11 @@ class PasswordDialog(QDialog): class ReceivePopup(QDialog): - def __init__(self, parent=None): - super(QDialog, self).__init__(parent) - #self.setFrameStyle(QFrame.WinPanel|QFrame.Raised) - #self.setAlignment(Qt.AlignCenter) - self.setMouseTracking(True) - def mouseMoveEvent(self, event): if not self.rect().contains(event.pos()): self.close() - def set_address(self, address): + def setup(self, address): label = QLabel(_("Copied your Bitcoin address to the clipboard!")) address_display = QLineEdit(address) address_display.setReadOnly(True) @@ -422,6 +416,13 @@ class ReceivePopup(QDialog): main_layout.addWidget(label) main_layout.addWidget(address_display) + self.setMouseTracking(True) + self.setWindowTitle("Electrum - " + _("Receive Bitcoin payment")) + self.setWindowFlags(Qt.Window|Qt.FramelessWindowHint|Qt.MSWindowsFixedSizeDialogHint) + self.layout().setSizeConstraint(QLayout.SetFixedSize) + #self.setFrameStyle(QFrame.WinPanel|QFrame.Raised) + #self.setAlignment(Qt.AlignCenter) + def popup(self): parent = self.parent() top_left_pos = parent.mapToGlobal(parent.rect().bottomLeft()) @@ -440,7 +441,7 @@ class MiniActuator: if not self.wallet.is_change(addr)] copied_address = random.choice(addrs) qApp.clipboard().setText(copied_address) - receive_popup.set_address(copied_address) + receive_popup.setup(copied_address) receive_popup.popup() def send(self, address, amount, parent_window):