[pygtk] PyGtk Windows gtk.gdk._2BUTTON_PRESS

Hugo Teso dixieflatl at gmail.com
Wed Nov 30 19:36:54 WST 2011


Hi list!

I have a problem with PyGtk over Windows while trying to capture double
click. The code I use is:

event.type == gtk.gdk._2BUTTON_PRESS

This works fine on Linux, but not on Windows :(

If I print "event.type" to see it's value, it is always:

<enum GDK_BUTTON_PRESS of type GdkEventType>

No matter if I double click or not... or if I do it faster :)

Any idea on how to fix this to get double click working on Windows?

Thanks!


More information about the pygtk mailing list