1
0

big refactoring: command line options and electrum.conf options override settings in wallet file.

This commit is contained in:
thomasv
2012-10-11 20:10:12 +02:00
parent 0d11aa75c4
commit 5444f55e6b
13 changed files with 384 additions and 364 deletions

View File

@@ -558,12 +558,13 @@ class ElectrumWindow:
def show_message(self, msg):
show_message(msg, self.window)
def __init__(self, wallet):
def __init__(self, wallet, config):
self.config = config
self.wallet = wallet
self.funds_error = False # True if not enough funds
self.window = MyWindow(gtk.WINDOW_TOPLEVEL)
title = 'Electrum ' + self.wallet.electrum_version + ' - ' + self.wallet.path
title = 'Electrum ' + self.wallet.electrum_version + ' - ' + self.config.path
if not self.wallet.seed: title += ' [seedless]'
self.window.set_title(title)
self.window.connect("destroy", gtk.main_quit)
@@ -1298,11 +1299,12 @@ class ElectrumWindow:
class ElectrumGui():
def __init__(self, wallet):
def __init__(self, wallet, config):
self.wallet = wallet
self.config = config
def main(self, url=None):
ew = ElectrumWindow(self.wallet)
ew = ElectrumWindow(self.wallet, self.config)
if url: ew.set_url(url)
gtk.main()