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

Method __init__

deeplabcut/gui/widgets.py:120–139  ·  view source on GitHub ↗
(self, items, parent=None)

Source from the content-addressed store, hash-verified

118
119class ItemSelectionFrame(QtWidgets.QFrame):
120 def __init__(self, items, parent=None):
121 super().__init__(parent)
122 self.setFrameShape(self.Shape.StyledPanel)
123 self.setLineWidth(0)
124
125 self.select_box = QtWidgets.QCheckBox("Files")
126 self.select_box.setChecked(True)
127 self.select_box.stateChanged.connect(self.toggle_select)
128
129 self.fancy_list = DragDropListView(self)
130 self._model = self.fancy_list.model
131 self._model.rowsInserted.connect(self.check_select_box)
132 self._model.rowsRemoved.connect(self.check_select_box)
133 self._model.itemChanged.connect(self.check_select_box)
134 for item in items:
135 self.fancy_list.add_item(item)
136
137 self.layout = QtWidgets.QVBoxLayout(self)
138 self.layout.addWidget(self.select_box)
139 self.layout.addWidget(self.fancy_list)
140
141 @property
142 def selected_items(self):

Callers

nothing calls this directly

Calls 4

DragDropListViewClass · 0.85
connectMethod · 0.80
add_itemMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected