commit d82a9a6effaf0f83e34d814c156bfdd4f98942e6
parent 326ddaf4100d4a2d47ea053925aa169513c9d464
Author: thomasv <thomasv@gitorious>
Date: Sat, 2 Feb 2013 09:40:54 +0100
delay console message until after the gui is initialized
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/gui_qt.py b/lib/gui_qt.py
@@ -443,6 +443,9 @@ class ElectrumWindow(QMainWindow):
tabs.setCurrentIndex (n)
tabs.setCurrentIndex (0)
+ # set initial message
+ self.console.showMessage(self.wallet.banner)
+
def close(self):
QMainWindow.close(self)
if self.qr_window:
@@ -1247,7 +1250,7 @@ class ElectrumWindow(QMainWindow):
def create_wall_tab(self):
from qt_console import Console
- self.console = console = Console(startup_message=self.wallet.banner)
+ self.console = console = Console()
console.updateNamespace({'wallet' : self.wallet, 'interface' : self.wallet.interface})
return console