1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-05-10 08:42:12 +02:00
Files
bec_widgets/bec_widgets/widgets/toggle/register_toggle_switch.py
T

16 lines
472 B
Python

def main(): # pragma: no cover
from qtpy import PYSIDE6
if not PYSIDE6:
print("PYSIDE6 is not available in the environment. Cannot patch designer.")
return
from PySide6.QtDesigner import QPyDesignerCustomWidgetCollection
from bec_widgets.widgets.toggle.toggle_switch_plugin import ToggleSwitchPlugin
QPyDesignerCustomWidgetCollection.addCustomWidget(ToggleSwitchPlugin())
if __name__ == "__main__": # pragma: no cover
main()