Files
pallectrum/electrum/plugins/qml_test/qml.py
Sander van Grieken d195fce82d qml: hook any qml supporting plugins, add test plugin
This allows different platforms to have their own UI components while still leveraging the common
set of QObjects and utility components.
2022-07-07 18:28:00 +02:00

13 lines
339 B
Python

import os
from PyQt5.QtCore import QUrl
from PyQt5.QtQml import QQmlApplicationEngine
from electrum.plugin import hook, BasePlugin
class Plugin(BasePlugin):
def __init__(self, parent, config, name):
BasePlugin.__init__(self, parent, config, name)
@hook
def init_qml(self, engine: QQmlApplicationEngine):
pass