(cls, widget)
| 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): |
no test coverage detected