[pygtk] Unsure which module to import
gry at ll.mit.edu
Thu Jul 15 02:53:35 WST 2004
On Wed, 14 Jul 2004 10:57:09 -0700
Chris Irish <chris.irish at libertydistribution.com> threw this fish to the penguins:
> Hi all, I'm reading in the gtk FAX about how to test for multiple button
> clicks in a callback method. but I'm unsure which module I need to
> import to be able to use the gdk constants. For example if I have the
> code snippet in my callback:
> if event.type == GDK._2BUTTON_PRESS:
> print 'double click'
> I'm already importing gtk, what am I missing. Some advice would be
> greatly appreciated. Chris
For gtk-2.x it is:
It does not seem to require importing gtk.gdk or anything else special,
just the usual gtk.
-- George Young
"Are the gods not just?" "Oh no, child.
What would become of us if they were?" (CSL)
More information about the pygtk