You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
895 B
30 lines
895 B
# To create a new GUI, please add its code to this directory.
|
|
# Three objects are passed to the ElectrumGui: config, daemon and plugins
|
|
# The Wallet object is instantiated by the GUI
|
|
|
|
# Notifications about network events are sent to the GUI by using network.register_callback()
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from . import qt
|
|
from . import kivy
|
|
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
|
|
|