PyGTK problem
Rajarshi Guha
rxg218 at psu.edu
Fri Feb 22 12:50:56 EST 2002
Hi,
I'm not sure whether this is the right place to ask this....
I have a PyGTK app built using libglade which basically consists of a
window containiong a text entry box.
I would like to take an action when the Return key is pressed. I made a
signal handler for the 'changed' even in GtKEditable. However the callback
is triggered whenever any text is entered into the box. Which is OK - but
the callback does'nt get called when a Return is entered.
I have got around it by adding a button - but it seems kludgy compared to
just pressing the Return key.
Does anybody have any suggestions?
--
-------------------------------------------------------------------
Rajarshi Guha | email: rajarshi at presidency.com
417 Davey Laboratory | web : http:// www.jijo.cjb.net
Dept. Of Chemistry | ICQ : 123242928
Pennsylvania State University | AIM : LoverOfPanda
-------------------------------------------------------------------
GPG Fingerprint: DCCB 4D1A 5A8B 2F5A B5F6 1F9E CDC4 5574 9017 AF2A
Public Key : http://pgp.mit.edu/
-------------------------------------------------------------------
A debugged program is one for which you have not yet found the conditions
that make it fail.
-- Jerry Ogdin
More information about the Python-list
mailing list