Files
pallectrum/electrum/gui/__init__.py

34 lines
985 B
Python
Raw Normal View History

2013-09-13 09:40:34 +02:00
# To create a new GUI, please add its code to this directory.
# Three objects are passed to the ElectrumGui: config, daemon and plugins
2018-09-25 18:15:28 +02:00
# The Wallet object is instantiated by the GUI
2013-09-11 11:45:58 +02:00
2013-09-13 09:40:34 +02:00
# Notifications about network events are sent to the GUI by using network.register_callback()
from typing import TYPE_CHECKING, Mapping, Optional
if TYPE_CHECKING:
from . import qt
from electrum.simple_config import SimpleConfig
from electrum.daemon import Daemon
from electrum.plugin import Plugins
class BaseElectrumGui:
def __init__(self, *, config: 'SimpleConfig', daemon: 'Daemon', plugins: 'Plugins'):
self.config = config
self.daemon = daemon
self.plugins = plugins
def main(self) -> None:
raise NotImplementedError()
def stop(self) -> None:
"""Stops the GUI.
This method must be thread-safe.
"""
pass
@classmethod
def version_info(cls) -> Mapping[str, Optional[str]]:
return {}