Add:

        mygthtext.set_events (KEY_RELEASE_MASK)

Matt

On Tue, Jun 20, 2000 at 11:38:50AM +0200, 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 problem is that I wanted to avoid as much as possible using the mouse.
> So... Does anybody know what I should do to make this key_release_event
> managing effective when I create the GtkText, or do I have to simulate a
> "clicked" or "button_pressed" event? I tried to do this, with a
> mygtktext.emit(something) but I just doesn't know the right syntax, if there's
> any chance this could work, anyway...
> 
> If anybody have ever encountered the same problem and knows how to resolve it,
> it would be great...
> 
> ----------------------------------
> 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
> ----------------------------------
> 
> _______________________________________________
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk

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

Reply via email to