mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-03-09 10:17:50 +01:00
16 lines
478 B
Python
16 lines
478 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.image.bec_image_widget_plugin import BECImageWidgetPlugin
|
|
|
|
QPyDesignerCustomWidgetCollection.addCustomWidget(BECImageWidgetPlugin())
|
|
|
|
|
|
if __name__ == "__main__": # pragma: no cover
|
|
main()
|