DEPRECATED since IPython 5.0 Register a class to provide the event loop for a given GUI. This is intended to be used as a class decorator. It should be passed the names with which to register this GUI integration. The classes themselves should subclass :clas
(self, toolkitname, *aliases)
| 210 | del self.apps[gui] |
| 211 | |
| 212 | def register(self, toolkitname, *aliases): |
| 213 | """DEPRECATED since IPython 5.0 |
| 214 | |
| 215 | Register a class to provide the event loop for a given GUI. |
| 216 | |
| 217 | This is intended to be used as a class decorator. It should be passed |
| 218 | the names with which to register this GUI integration. The classes |
| 219 | themselves should subclass :class:`InputHookBase`. |
| 220 | |
| 221 | :: |
| 222 | |
| 223 | @inputhook_manager.register('qt') |
| 224 | class QtInputHook(InputHookBase): |
| 225 | def enable(self, app=None): |
| 226 | ... |
| 227 | """ |
| 228 | warn("`register` is deprecated since IPython 5.0 and will be removed in future versions.", |
| 229 | DeprecationWarning, stacklevel=2) |
| 230 | def decorator(cls): |
| 231 | if ctypes is not None: |
| 232 | inst = cls(self) |
| 233 | self.guihooks[toolkitname] = inst |
| 234 | for a in aliases: |
| 235 | self.aliases[a] = toolkitname |
| 236 | return cls |
| 237 | return decorator |
| 238 | |
| 239 | def current_gui(self): |
| 240 | """DEPRECATED since IPython 5.0 |
nothing calls this directly
no outgoing calls
no test coverage detected