"Peter Petto" <[EMAIL PROTECTED]> wrote

I want to write programs that can draw figures with commands akin to point(x,y) to draw a point at coordinates (x,y), or segment (x1,y1,x2, y2) to draw a segment between points (x1, y1) and (x2, y2)?

Most GUI toolkits will have a Canvas widget or similar that allows
drawing at that level. Also the standard turtle module might be
helpful with supoport for turtle graphics. Finally there are Python
plotting libraries that can be used for graphing and charts

However the GUI toolkits have the big disadvantage that you have to
build a GUII and all the controls before you can use the Canvas. That
migt not be what you want. Or you may want to build a basic framework
that your students can start from.

I'd appreciate recommendations as to the best facility or library to use to this end. I primarily use a Mac, but my students primarily use Windows.

Standard Tkinter or wxPython both work on the Mac.

It depends on whether you want to teach graphics programming or
just graphics for data presentation. If the latter you are probably better
off with a standard spreadsheet like Excel.

HTH,

--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to