# Copyright (C) 2022 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause from PySide6.QtDesigner import QPyDesignerCustomWidgetCollection from wigglywidget import WigglyWidget # Set PYSIDE_DESIGNER_PLUGINS to point to this directory and load the plugin TOOLTIP = "A cool wiggly widget (Python)" DOM_XML = """ 0 0 400 200 Hello, world """ if __name__ == '__main__': QPyDesignerCustomWidgetCollection.registerCustomWidget(WigglyWidget, module="wigglywidget", tool_tip=TOOLTIP, xml=DOM_XML)