(self)
A context manager for the duration of which only the current
        process will be able to receive events from the device.
A context manager for the duration of which only the current
        process will be able to receive events from the device.
A context manager for the duration of which only the current process will be able to receive events from the device .
def grab_context(self):
        '''
        A context manager for the duration of which only the current
        process will be able to receive events from the device.
        '''
        self.grab()
        yield
        self.ungrab()
def grab_context ( self ) : self . grab ( ) yield self . ungrab ( )