mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-05-05 14:24:21 +02:00
16 lines
483 B
Python
16 lines
483 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.device_browser.device_browser_plugin import DeviceBrowserPlugin
|
|
|
|
QPyDesignerCustomWidgetCollection.addCustomWidget(DeviceBrowserPlugin())
|
|
|
|
|
|
if __name__ == "__main__": # pragma: no cover
|
|
main()
|