1
0
Files
electrum/electrum/gui/__init__.py
SomberNight b45c84f24f remove the kivy gui
We now use the qml gui on Android, and haven't been maintaining
the kivy GUI for a while.
2023-08-30 16:47:37 +00:00

34 lines
985 B
Python

# 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, 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 {}