Hi, I keep getting the following error:
AttributeError: Caribou instance has no attribute 'on_key_up'
The problem is, I'm pretty sure I do have that attribute...
Here are some excerpts from my code (from caribou.py):
def on_key_up(self, event):
if event.event_string == "Shift_R":
_r_shift_down = False
elif event.event_string == "Shift_L":
_l_shift_down = False
And this is the line that is causing the error:
pyatspi.Registry.registerKeystrokeListener(caribou.on_key_up, mask=None, kind=(pyatspi.KEY_RELEASED_EVENT,))
Anybody see what I'm doing wrong?
Thanks!
edit: Whoops--here's how I create the caribou instance:
caribou = Caribou()