def close(self): super(XInputDevice, self).close() if not self._device: return # TODO: uninstall events xi.XCloseDevice(self.display._display, self._device)
def close(self): for device in self._open_devices: xi.XCloseDevice(self.display._display, device)