simple test for waiting dialog
authorThomasV <thomasv@gitorious>
Sat, 24 May 2014 20:06:43 +0000 (22:06 +0200)
committerThomasV <thomasv@gitorious>
Sat, 24 May 2014 20:06:43 +0000 (22:06 +0200)
gui/qt/main_window.py
gui/qt/util.py

index 3c56367..d7ce7cc 100644 (file)
@@ -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
index 93763e6..11ddf6f 100644 (file)
@@ -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_()