Browse Source
This allows different platforms to have their own UI components while still leveraging the common set of QObjects and utility components.patch-4
Sander van Grieken
4 years ago
3 changed files with 50 additions and 11 deletions
@ -0,0 +1,5 @@ |
|||
from electrum.i18n import _ |
|||
|
|||
fullname = 'QML Plugin Test' |
|||
description = '%s\n%s' % (_("Plugin to test QML integration from plugins."), _("Note: Used for development")) |
|||
available_for = ['qml'] |
@ -0,0 +1,12 @@ |
|||
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 |
Loading…
Reference in new issue