[pygtk] gtk.gdk.Event stores pixels in float

Jody Steele jmlsteele at stfu.ca
Mon Jun 6 02:01:07 WST 2005

Simple question: Why?  Every function cal that makes use of those pixels  
expects ints, and for that matter what would 0.2 of a pixel be (random  
floating point number taken... i didn't actually get 0.2 as a return)

It's not a problem I'm having, I'm just really curious about this..

Jody Steele

P.S. Example: When the event is a gtk.gdk.BUTTON_PRESS event.x and event.y  
are floats.

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

More information about the pygtk mailing list