Add mouse events, event demo.
Ncurses
http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/mouse.html
Wikipedia:
http://en.wikipedia.org/wiki/Event_loop
Python/Gnome:
http://developer.gnome.org/gnome-devel-demos/stable/tutorial.py.html.en
PyQt4 class reference:
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/classes.html
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qevent.html
PyQt4 tutorial:
http://zetcode.com/tutorials/pyqt4/
http://zetcode.com/tutorials/pyqt4/layoutmanagement/
Pyglet:
http://www.pyglet.org/doc/api/pyglet.event.EventDispatcher-class.html
GTK:
http://developer.gnome.org/gtk3/stable/
http://python-gtk-3-tutorial.readthedocs.org/en/latest/layout.html
Qt Layout:
http://qt-project.org/doc/qt-4.8/layout.html
PDCurses:
http://pdcurses.sourceforge.net/doc/PDCurses.txt
XTerm Control Sequences
http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
Kivy
http://kivy.org/
Urwid
http://urwid.org/