electrum

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

commit 0bd1eb1f7ad07c04fb6baefcc29912ea29416b21
parent 2ed292176ec97e0d46c97f4e9e58e529ea3c1b71
Author: ThomasV <thomasv@gitorious>
Date:   Sat, 24 May 2014 22:06:43 +0200

simple test for waiting dialog

Diffstat:
Mgui/qt/main_window.py | 1+
Mgui/qt/util.py | 7+++++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -29,6 +29,7 @@ import PyQt4 from PyQt4.QtGui import * from PyQt4.QtCore import * import PyQt4.QtCore as QtCore +print PyQt4.QtCore.PYQT_VERSION_STR from electrum.bitcoin import MIN_RELAY_TX_FEE, is_valid from electrum.plugins import run_hook diff --git a/gui/qt/util.py b/gui/qt/util.py @@ -181,3 +181,10 @@ class MyTreeWidget(QTreeWidget): break self.emit(SIGNAL('customContextMenuRequested(const QPoint&)'), QPoint(50, i*5 + j - 1)) + + + +if __name__ == "__main__": + app = QApplication([]) + WaitingDialog(None, 'testing ...').start(lambda: [time.sleep(1)], lambda x: QMessageBox.information(None, 'done', "done", _('OK'))) + app.exec_()