Merge.
Due to my schizophrenia, I've accidentally forked my own code. The other set of changes were found in another computer.
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
Anchor Layout in QML:
http://harmattan-dev.nokia.com/docs/library/html/qt4/qml-anchor-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/