Files
pallectrum/electrum/plugins/qml_test/qml.py

18 lines
499 B
Python
Raw Normal View History

2021-04-06 11:27:46 +02:00
from typing import TYPE_CHECKING
from PyQt5.QtQml import QQmlApplicationEngine
from electrum.plugin import hook, BasePlugin
2021-04-06 11:27:46 +02:00
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)
2021-04-06 11:27:46 +02:00
_logger = get_logger(__name__)
@hook
2021-04-06 11:27:46 +02:00
def init_qml(self, gui: 'ElectrumGui'):
self._logger.debug('init_qml hook called')