moved lite gui into lib/ and added -g lite to ./electrum

This commit is contained in:
Amir Taaki 2012-06-27 22:24:58 +02:00
parent ecc11035ec
commit 64de7e55cc
2 changed files with 15 additions and 1 deletions

View File

@ -136,6 +136,11 @@ if __name__ == '__main__':
import lib.gui_qt as gui
except ImportError:
import electrum.gui_qt as gui
elif options.gui == 'lite':
try:
import lib.gui_lite as gui
except ImportError:
import electrum.gui_life as gui
else:
print "unknown gui", options.gui
exit(1)
@ -155,7 +160,8 @@ if __name__ == '__main__':
#gui.show_message(e.message)
exit(1)
if not found: exit(1)
if not found:
exit(1)
gui.main(url)
wallet.save()
sys.exit(0)

View File

@ -9,6 +9,14 @@ def IconButton(filename, parent=None):
icon = QIcon(pixmap)
return QPushButton(icon, "", parent)
class ElectrumGui:
def __init__(self, wallet):
self.wallet = wallet
def main(self, url):
print url
# Do nothing.
class MiniWindow(QDialog):
def __init__(self):
super(MiniWindow, self).__init__()