fix show seed
authorThomasV <thomasv@gitorious>
Mon, 3 Dec 2012 03:55:21 +0000 (04:55 +0100)
committerThomasV <thomasv@gitorious>
Mon, 3 Dec 2012 03:55:21 +0000 (04:55 +0100)
lib/gui_qt.py

index 6286624..1b9685c 100644 (file)
@@ -137,11 +137,14 @@ class StatusBarButton(QPushButton):
 
 class QRCodeWidget(QWidget):
 
-    def __init__(self):
+    def __init__(self, data = None):
         QWidget.__init__(self)
         self.setMinimumSize(210, 210)
         self.addr = None
         self.qr = None
+        if data:
+            self.set_addr(data)
+            self.update_qr()
 
     def set_addr(self, addr):
         if self.addr != addr: