__init__.py 648 B

123456789101112131415161718
  1. from .PStackedWidget import *
  2. from .PLineEdit import *
  3. from .PCamChecked import *
  4. from .ImageViewer import ImageViewer
  5. __all__ = ['PStackedWidget', 'PLineEdit', 'PCamChecked', 'ImageViewer']
  6. def create_widget_cam_shecked(obj, layout, name_object: str, mode: str = 'video') -> PCamChecked:
  7. widget = PCamChecked(obj, mode=mode)
  8. widget.setObjectName(name_object)
  9. layout.addWidget(widget)
  10. return widget
  11. def create_widget_stacked(obj, layout, name_object: str, mode: str = 'video') -> PStackedWidget:
  12. widget = PStackedWidget(obj, mode=mode)
  13. widget.setObjectName(name_object)
  14. layout.addWidget(widget)
  15. return widget