commit e54a746a5795ed498a8f8e2883f5a62eb7c106d2
parent e82653f4547ebebc5eee99a3f8959d8ba733c16b
Author: thomasv <thomasv@gitorious>
Date: Mon, 30 Sep 2013 10:30:43 +0200
path of icons_rc
Diffstat:
2 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py
@@ -40,7 +40,7 @@ from electrum.bitcoin import MIN_RELAY_TX_FEE
try:
import icons_rc
except:
- sys.exit("Error: Could not import icons_rc.py, please generate it with: 'pyrcc4 icons.qrc -o gui/gui_classic/icons_rc.py'")
+ sys.exit("Error: Could not import icons_rc.py, please generate it with: 'pyrcc4 icons.qrc -o gui/qt/icons_rc.py'")
from util import *
from main_window import ElectrumWindow
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -24,11 +24,7 @@ import shutil
import StringIO
-try:
- import PyQt4
-except:
- sys.exit("Error: Could not import PyQt4 on Linux systems, you may try 'sudo apt-get install python-qt4'")
-
+import PyQt4
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import PyQt4.QtCore as QtCore
@@ -36,10 +32,7 @@ import PyQt4.QtCore as QtCore
from electrum.bitcoin import MIN_RELAY_TX_FEE, is_valid
from electrum.plugins import run_hook
-try:
- import icons_rc
-except:
- sys.exit("Error: Could not import icons_rc.py, please generate it with: 'pyrcc4 icons.qrc -o gui/icons_rc.py'")
+import icons_rc
from electrum.wallet import format_satoshis
from electrum import Transaction