MCPcopy Create free account
hub / github.com/LabPy/lantz / bind_feat

Method bind_feat

lantz/ui/widgets.py:227–238  ·  view source on GitHub ↗
(self, feat)

Source from the content-addressed store, hash-verified

225 self.valueChanged.connect(self.on_widget_value_changed)
226
227 def bind_feat(self, feat):
228 self._feat = feat
229 try:
230 keys = feat.keys
231 except:
232 keys = None
233
234 if keys:
235 self._feat_key = keys[0]
236 else:
237 self._feat_key = MISSING
238 self.setReadOnly(not self.writable)
239
240 @classmethod
241 def _wrap(cls, widget):

Callers 7

__new__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
connect_featFunction · 0.45
bind_featMethod · 0.45
bind_featMethod · 0.45
_pimpMethod · 0.45

Calls 1

setReadOnlyMethod · 0.95

Tested by

no test coverage detected