diff options
| author | exislow <exislow@users.noreply.github.com> | 2024-02-01 07:42:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-01 07:42:08 +0100 |
| commit | 2ec3314b0714bc938b068084723d31ff1a854f16 (patch) | |
| tree | f84ec117c3ef57f7513ceb434c9e55835c0e441c /tidal_dl_ng/ui/dummy_register.py | |
| parent | 7c0d2ab2eabfc8574f569752465035557baa2875 (diff) | |
| parent | ce9afc1629c5fdb7ef74f2c5fcd9f9bdde527efc (diff) | |
| download | tidal-dl-ng-2ec3314b0714bc938b068084723d31ff1a854f16.tar.gz | |
Merge pull request #25 from exislow/pkce
Pkce
Diffstat (limited to 'tidal_dl_ng/ui/dummy_register.py')
| -rw-r--r-- | tidal_dl_ng/ui/dummy_register.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/tidal_dl_ng/ui/dummy_register.py b/tidal_dl_ng/ui/dummy_register.py new file mode 100644 index 0000000..dfffdc2 --- /dev/null +++ b/tidal_dl_ng/ui/dummy_register.py @@ -0,0 +1,33 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +from PySide6.QtDesigner import QPyDesignerCustomWidgetCollection + +from .dummy_wiggly import WigglyWidget + +# Set PYSIDE_DESIGNER_PLUGINS to point to this directory and load the plugin + + +TOOLTIP = "A cool wiggly widget (Python)" +DOM_XML = """ +<ui language='c++'> + <widget class='WigglyWidget' name='wigglyWidget'> + <property name='geometry'> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>200</height> + </rect> + </property> + <property name='text'> + <string>Hello, world</string> + </property> + </widget> +</ui> +""" + +if __name__ == "__main__": + QPyDesignerCustomWidgetCollection.registerCustomWidget( + WigglyWidget, module="wigglywidget", tool_tip=TOOLTIP, xml=DOM_XML + ) |
