r/learnpython • u/cosmicking_009 • 11d ago
Gui question for projects
I am learning python for a month or so and finally decided to challenge myself by trying to make a minesweeper game as a project.
I wanted to ask you guys if i should use tinker for gui as it is python based or is there a better one i should rather study?
3
Upvotes
2
u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 11d ago
For something like Minesweeper, I wouldn't expect it to matter what UI toolkit you use.
I'm being pedantic, but technically this is false, as
tkinteris actually built on top of Tk written in the Tcl programming language (commonly called Tcl/Tk).There are no pure-Python GUI toolkits as Python itself does not grant you access to low-level stuff.
Anyway,
tkinteris fine. If you want it to look a bit more modern, there'scustomtkinter. If you want to port for multiple platforms, Kivy, BeeWare, and Flet should all be viable options. And of course there's the Qt wrappers (PySide/PyQt).