1
0
Files
electrum/electrum/plugins/qml_test/qml.py
Sander van Grieken 1260720bb6 qml: qml test plugin
2022-07-07 18:28:00 +02:00

18 lines
499 B
Python

from typing import TYPE_CHECKING
from PyQt5.QtQml import QQmlApplicationEngine
from electrum.plugin import hook, BasePlugin
from electrum.logging import get_logger
if TYPE_CHECKING:
from electrum.gui.qml import ElectrumGui
class Plugin(BasePlugin):
def __init__(self, parent, config, name):
BasePlugin.__init__(self, parent, config, name)
_logger = get_logger(__name__)
@hook
def init_qml(self, gui: 'ElectrumGui'):
self._logger.debug('init_qml hook called')