This allows different platforms to have their own UI components while still leveraging the common set of QObjects and utility components.
13 lines
339 B
Python
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
|