[pygtk] Unsure which module to import

Chris Irish chris.irish at libertydistribution.com
Thu Jul 15 01:57:09 WST 2004

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

More information about the pygtk mailing list