Source

hexbattle / software_keypad.py

Full commit
#!/usr/bin/env python2
# encoding: utf-8

"""A simple visual keypad which mirrors the keys pressed on the external keypad and allows sending your own events.

See http://python-xlib.sourceforge.net/doc/html/python-xlib_11.html#SEC10
and https://bbs.archlinux.org/viewtopic.php?pid=725523
and http://stackoverflow.com/questions/2585647/how-can-i-monitor-mouse-events-with-python-xlib-instead-of-capture-them
and http://bytes.com/topic/python/answers/749435-python-xlib-question
for notes for the realization.
"""