On Wed, Feb 25, 2004 at 04:39:37PM +0100, [EMAIL PROTECTED] wrote:
> I want select first item of the menubar, if "Alt" (in gtk named mod1; i do 
> not mean Alt Gr) released. I connect the key-release-event and it  work 
> for all other keys, but not for Mod1. For Mod1 i get only the keypressed 
> event. 

That's odd. I can't reproduce your problem here locally with the
following testcase:

    import gtk, GDK

    def foo(*args):
    print args

    w = gtk.GtkWindow()
    w.add_events(GDK.KEY_RELEASE_MASK)
    w.connect("key-release-event", foo)
    w.show_all()

    gtk.mainloop()

(which, yes, is based on PyGTK 0.6). If you're doing the pygtk2
equivalent, ISTM this is a bug, and if so, it's probably in the GTK+
port of Win32. Can anybody with pygtk2 check if this works for them?

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to