Florin Iucha wrote:
Hello,The GTK_* constants have been mapped to gtk.* constants, and the GDK_* constants to gtk.gdk.*. The one caveat is that python identifiers can't start with a number. As is done in a few other Python extension modules, pygtk will prefix these constants with an underscore.
I have a question about event definitions: I am trying to capture the
double click event but I cannot find the symbolic name for it.
I am using Debian and the unstable package python2.2-gnome2-1.99.13-3 .
I have searched the web and mailing list archives. In old postings there
is a reference to a "GDK" module. I can not find such a module in the
new package.
There is a reference to GDK_2BUTTON_PRESS in
/usr/share/pygtk/2.0/defs/gdk-types.defs
but I am at a total loss on how to use this in my python program.
What can I do? I can slap a '5' in there but it is gross...
So GDK_2BUTTON_PRESS is wrapped as gtk.gdk._2BUTTON_PRESS, while GDK_BUTTON_PRESS is gtk.gdk.BUTTON_PRESS (no underscore).
James.
--
Email: [EMAIL PROTECTED] | Linux.conf.au http://linux.conf.au/
WWW: http://www.daa.com.au/~james/ | Jan 22-25 Perth, Western Australia.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
