Event-driven / callback programming of mouse or keyboard

Sophie <[email protected]> Mon, 21 May 2012 13:30:03 -0500
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
Is there any way to do event-driven programming, with callbacks for mouse or keyboard events? I would rather not use the polling style shown in example on the web site.

e.g. 

onKey('a', processKeyA)

onMouseDown(processMouseDown)

onMouseDownOn(myCube, processMouseDownOnObject)

Thanks!
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/