__init__.py 540 B

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