GUI Frameworks in Python?

Josiah Carlson jcarlson at uci.edu
Thu Apr 8 23:22:52 EDT 2004


> wxPython 2.4 drawline:
>   wxdc.drawline(x1,y1,x2,y2)
> 
> wxPython 2.5 drawline:
>   wxdc.drawline (wxPoint(x1,y1),wxPoint(x2,y2))

Using wxPoint is generally frowned upon in wxPython, in favor of tuples.

>   or the much simpler ((x1,y1),(x2,y2))
>   or you can do drawlineXY(x1,y1,x2,y2)

More to the point, the above is the only part that matters in the 
wxPython 2.4->2.5 discussion.

Based on this single example, you are complaining about needing to use 
wxdc.drawlineXY, rather than the old wxdc.drawline.

Certainly your opinion is valid, but it seems like you are splitting 
hairs, at least in this example.

  - Josiah



More information about the Python-list mailing list