def __init__(self, app, hub, debug):
window_size = qt_core.QSize(800, 600)
BaseWebUI.__init__(self, index.html, app, hub, window_size, debug)
self.agent = '%s v.%s' % (USER_AGENT, '.'.join(str(v) for v in VERSION))
log("Starting [%s]..." % self.agent, LEVEL_INFO)
self.app = app
self.debug = debug
self.hub = hub
self.app.aboutToQuit.connect(self._handleAboutToQuit)
self.sumokoind_daemon_manager = None
self.wallet_cli_manager = None
self.wallet_rpc_manager = None
self.new_wallet_ui = None
self.wallet_info = WalletInfo(app)
# load app settings
self.app_settings = AppSettings()
self.app_settings.load()
## Blockchain height
self.target_height = self.app_settings.settings['blockchain']['height']
self.current_height = 0
评论列表
文章目录