If you want to build a simple #Python desktop application with a GUI, is tkinter the standard weapon of choice?
(This is for classroom use, so simplicity of the code is more important than it being fast, powerful, or bulletproof.)
@peterdrake it was used in my university Python courses, so it seems to be somewhat "approved"
@peterdrake Depends on what you want to do.
Is it "code just to see that you can write programs".
Is it going to run something you're going to do the actual teaching with.
Or is it "we're doing GUI things today".
I think flask (on click -> different path, use that function do something, then return page) or even brython will work too.
Do you have something like a minimal example of what the end result of the lesson should be?
@bmaxv The final project for the class is a (single-player against an AI opponent) Scrabble game. I'd want the simplest thing that can support that. Basically just drawing colored shapes and text on the screen and recognizing mouse clicks and keypresses.
Hmmmm.
I wrote / adapted this tictactoe game, about 300 lines, maybe that can help as orientation for how much code that could end up being.
https://github.com/BMaxV/pygame_tictactoe
I have not done much with pygame, but I can say that it does support getting mouse position, mouse click and keypresses.
And there is a big active community that can help.
@peterdrake If you have to create a lot of screen assets that you have to track, I think Pygame might be the way to go. If you need menus and buttons and other application chrome, tkinter may be the way to go.
@peterdrake @peterdrake I.would say it is PySimpleGUI if the important part is the GUI. Don't know how easy it is to create standalone applications.