gtk.gdk.Event stores pixels in float

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

gtk.gdk.Event stores pixels in float

Jody Steele
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/
_______________________________________________
pygtk mailing list   [hidden email]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/