MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / set_layout_contents_visible

Function set_layout_contents_visible

deeplabcut/gui/components.py:697–709  ·  view source on GitHub ↗
(layout: QtWidgets.QLayout, visible: bool)

Source from the content-addressed store, hash-verified

695
696
697def set_layout_contents_visible(layout: QtWidgets.QLayout, visible: bool):
698 for i in range(layout.count()):
699 item = layout.itemAt(i)
700
701 # If it's a widget item
702 widget = item.widget()
703 if widget is not None:
704 widget.setVisible(visible)
705
706 # If it's a nested layout
707 child_layout = item.layout()
708 if child_layout is not None:
709 set_layout_contents_visible(child_layout, visible)

Callers 3

_update_detectorsMethod · 0.90
_on_engine_changeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected