moved lite gui into lib/ and added -g lite to ./electrum
This commit is contained in:
parent
ecc11035ec
commit
64de7e55cc
8
electrum
8
electrum
|
@ -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)
|
||||
|
|
|
@ -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__()
|
Loading…
Reference in New Issue