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

Method wrap

lantz/ui/widgets.py:248–259  ·  view source on GitHub ↗
(cls, widget)

Source from the content-addressed store, hash-verified

246
247 @classmethod
248 def wrap(cls, widget):
249 if hasattr(widget, '_lantz_wrapped'):
250 return
251
252 if getattr(widget, '_IS_LANTZ_WRAPPER', False):
253 widget._wrap(widget)
254 else:
255 wrapper_class = cls._WRAPPERS.get(type(widget), cls)
256 wrapper_class._wrap(widget)
257 widget.__class__ = wrapper_class
258
259 widget._lantz_wrapped = True
260
261 @classmethod
262 def from_feat(cls, feat, parent=None):

Callers 3

from_featMethod · 0.80
connect_featFunction · 0.80
_pimpMethod · 0.80

Calls 2

getMethod · 0.80
_wrapMethod · 0.45

Tested by

no test coverage detected