Simple graphic library for beginners
On 2018-01-10 13:40, Jan Erik Mostr?m wrote:
> I'm looking for a really easy to use graphic library. The target users
> are teachers who have never programmed before and is taking a first (and
> possible last) programming course.
> I would like to have the ability to draw lines, circles, etc. Nothing
> fancy, as little window management as possible (possible buttons),
> perhaps simple events like button presses or clicks on canvas - think:
> making simple diagrams or simple figures. Cross-platform
> Yes, I know about tkinter.
> Yes, I know about various block languages like Scratch but they are not
> relevant in this case.
> Any suggestions?
It depends on what you're planning to do; "simple graphics library" and
"making [...] figures" are two requirements that don't necessarily fit
Perhaps turtle (https://docs.python.org/3/library/turtle.html) would
suit your needs?
If that's not what you're looking for, just pick any popular library
that does the specific things you want to use in your lesson, and teach
only the relevant bits. If you want (scientific) graphs and figures, go
matplotlib. It's not the nicest library, but it's powerful and
well-represented on stack overflow. If you want buttons and stuff, go
for PyQt or Tkinter. Both are messy and complicated, and Tkinter looks
terrible by default, but that's just the way it is.