tdisplay help message if pyqt is not found - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 1224610109f1d6bf101ddc79f03af81eb10bba48
DIR parent 7faaf9f5ee479355c3012e4aff81adf994520cb6
HTML Author: ThomasV <thomasv@gitorious>
Date: Thu, 10 May 2012 20:39:50 +0200
display help message if pyqt is not found
Diffstat:
M lib/gui_qt.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py
t@@ -18,7 +18,13 @@
import sys, time, datetime, re
-# todo: see PySide
+try:
+ import PyQt4
+except:
+ print "could not import PyQt4"
+ print "on Linux systems, you may try 'sudo apt-get install python-qt4'"
+ sys.exit(1)
+
from PyQt4.QtGui import *
from PyQt4.QtCore import *