Browse Source

minor fixes

283
ThomasV 9 years ago
parent
commit
51ca7a056b
  1. 4
      electrum
  2. 7
      gui/kivy/main_window.py

4
electrum

@ -71,7 +71,7 @@ if is_bundle or is_local or is_android:
from electrum import SimpleConfig, Network, Wallet, WalletStorage
from electrum.util import print_msg, print_stderr, json_encode, json_decode
from electrum.util import set_verbosity, InvalidPassword
from electrum.util import set_verbosity, InvalidPassword, check_www_dir
from electrum.commands import get_parser, known_commands, Commands, config_variables
from electrum import daemon
@ -338,7 +338,7 @@ if __name__ == '__main__':
from electrum import websockets
websockets.WebSocketServer(config, d.network).start()
if config.get('requests_dir'):
util.check_www_dir(config.get('requests_dir'))
check_www_dir(config.get('requests_dir'))
d.join()
sys.exit(0)
else:

7
gui/kivy/main_window.py

@ -71,11 +71,11 @@ class ElectrumWindow(App):
_.switch_lang(language)
def on_quotes(self, d):
print "main_window: on_quotes"
#Logger.info("on_quotes")
pass
def on_history(self, d):
print "main_window: on_history"
#Logger.info("on_history")
if self.history_screen:
self.history_screen.update()
@ -292,7 +292,8 @@ class ElectrumWindow(App):
def on_start(self):
''' This is the start point of the kivy ui
'''
import time; print 'python time to on_start:', time.clock(), '<<<<<<<<<'
import time
Logger.info('Time to on_start: {} <<<<<<<<'.format(time.clock()))
Logger.info("dpi: {} {}".format(metrics.dpi, metrics.dpi_rounded))
win = Window
win.bind(size=self.on_size,

Loading…
Cancel
Save