On Tue, 20 Jun 2000, Bellamy Bruno wrote:

> Hi there...
> 
> I'm trying to catch the key_release event in a GtkText, so I had to
> use a mygtktext.add_events(GDK.KEY_RELEASE_MASK).
> But it seems to work only after I start by clicking in
> the GtkText with the mouse. Otherwise, no key_release event is detected.

The widget will only receive key press events if it has focus.  That could
be what the problem you are seeing.  Does the problem go away if you call
text_widget.grab_focus() ?

> 
> ----------------------------------
> E-Mail: Bellamy Bruno <[EMAIL PROTECTED]>
> Web site: http://neverland.net/bellamy
> Date: 20-Jun-2000 Time: 11:37:26
> 
> This message was sent by XFMail
> ----------------------------------
> 

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to