From: Nick L. <ni...@ja...> - 2004-09-19 17:10:41
|
Hi folks, Im sure this must be in the documentation somewhere, but Im afraid I can't find it. Also I've searched the archives and I can't find it there either. Could someone please tell me how to capture when <return> is pressed on a keyboard ? I know this much : def on_ipInput_keyPress(self, event): print "key pressed %s" %event which outputs something like : you pressed <wx._core.KeyEvent; proxy of C++ wxKeyEvent instance at _0cf41200_p_wxKeyEvent> But I don't know how to specifically capture the <return> key. I apologise in advance for this post, as Im sure that this must be documented somewhere, I simply cannot find where. Any pointers to the relevant documentation greatfully received. Many thanks Nick. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004 |