answered 2013-12-09 07:16:19 -0600
This really isn't related to OpenCV is it? The official docs for event handling in PyGTK are here: http://www.pygtk.org/pygtk2tutorial/sec-EventHandling.html There is an example at the end of the page.