Actual behavior:
Me: $ python3 ./pygrid
System: (pygrid running in background)
Me: presses ctrl, does not reach 0 yet
System pygrid hangs, eats all following keypresses, and gives this output:
Connected to pydev debugger (build 193.6494.30)
PyGrid running. Press CTRL+C to cancel.
/home/tobkin/Development/pygrid/pygrid.py:81: PyGIDeprecationWarning: GObject.io_add_watch is deprecated; use GLib.io_add_watch instead
GObject.io_add_watch(self.root.display, GObject.IO_IN, self._check_event)
/home/tobkin/Development/pygrid/pygrid.py:81: PyGIDeprecationWarning: GObject.IO_IN is deprecated; use GLib.IO_IN instead
GObject.io_add_watch(self.root.display, GObject.IO_IN, self._check_event)
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 671, in <lambda>
func_fdtransform = lambda _, cond, *data: callback(channel, cond, *data)
File "/home/tobkin/Development/pygrid/pygrid.py", line 102, in _check_event
command = self.keys[event.detail]
KeyError: 38
Process finished with exit code 1
Weird behavior. I can't tell if it is due to a problem from the library used to interface with X11.
Intended behavior: Me: $ python3 ./pygrid System: (pygrid running in background) Me: presses ctrl + 0 System: window maximizes
Actual behavior: Me: $ python3 ./pygrid System: (pygrid running in background) Me: presses ctrl, does not reach 0 yet System pygrid hangs, eats all following keypresses, and gives this output: