1
0

separate gui init() and load_wallet()

This commit is contained in:
ThomasV
2013-08-30 10:11:10 +02:00
parent 10c805b3e7
commit 1637197419
4 changed files with 94 additions and 69 deletions

View File

@@ -128,8 +128,15 @@ if __name__ == '__main__':
sys.exit()
#sys.exit("Error: Unknown GUI: " + gui_name )
gui = gui.ElectrumGui(config)
# network interface
interface = Interface(config, True)
interface.start(wait = False)
interface.send([('server.peers.subscribe',[])])
gui = gui.ElectrumGui(config,interface)
gui.main(url)
interface.stop()
# we use daemon threads, their termination is enforced.
# this sleep command gives them time to terminate cleanly.