The same as ``self.on``, except that the listener is automatically removed after being called.
(self, event: Any, f: Any)
| 126 | self._impl_obj.on(event, self._wrap_handler(f)) |
| 127 | |
| 128 | def once(self, event: Any, f: Any) -> None: |
| 129 | """The same as ``self.on``, except that the listener is automatically |
| 130 | removed after being called. |
| 131 | """ |
| 132 | self._impl_obj.once(event, self._wrap_handler(f)) |
| 133 | |
| 134 | def remove_listener(self, event: Any, f: Any) -> None: |
| 135 | """Removes the function ``f`` from ``event``.""" |