On Mon, 2003-09-29 at 16:01, Christian Reis wrote:
> On Thu, Sep 25, 2003 at 10:57:23AM +0100, Stephen Kennedy wrote:
> >         path, col, cellx, celly = treeview.get_path_at_pos(
> > int(event.x), int(event.y) )
> 
> Question: Aren't event.x and event.y always integers?

Actually in pygtk-2.0.0 they're floats. I found this out when
upgrading to python2.3 - it gives warnings when passing floats
to c functions taking an integer.

Stephen.

-- 
Stephen Kennedy <[EMAIL PROTECTED]>
http://meld.sf.net visual diff and merge

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to