MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / state

Method state

deeplabcut/gui/widgets.py:81–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79
80 @property
81 def state(self):
82 tests = [item.checkState() == QtCore.Qt.Checked for item in self.items]
83 n_checked = sum(tests)
84 if all(tests):
85 state = QtCore.Qt.Checked
86 elif any(tests):
87 state = QtCore.Qt.PartiallyChecked
88 else:
89 state = QtCore.Qt.Unchecked
90 return state, n_checked
91
92 def add_item(self, path):
93 item = QStandardItem(path)

Callers 2

_run_update_commandMethod · 0.45
closeEventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected