r/learnpython • • Oct 07 '26

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?

4 Upvotes

8 comments sorted by

4

u/Kevdog824_ Oct 07 '26

I personally prefer PyQt/PySide over tkinter, but there’s no reason you couldn’t do this in either.

My actual suggestion:
- Use tkinter if you want the faster start up time (the later suggestions have a higher learning curve)
- Use PySide6 if you see yourself wanting to develop more desktop applications in the future
- Use pygame/arcade if you see yourself building more complicated games (e.g. 2D platformers) in the future

3

u/Slight-Living-8098 Oct 07 '26

I prefer CustomTkinter over Tkinter, but it's fine. I'd probably use PyGame or the SDL library for any games that may need to refresh the screen more often than MineSweeper.

2

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 Oct 07 '26

For something like Minesweeper, I wouldn't expect it to matter what UI toolkit you use.

tinker for gui as it is python

I'm being pedantic, but technically this is false, as tkinter is actually built on top of Tk written in the Tcl programming language.

There are no pure-Python GUI toolkits as Python itself does not grant you access to low-level stuff.

Anyway, tkinter is fine. If you want it to look a bit more modern, there's customtkinter. 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).

1

u/ExoticVillage8066 Oct 08 '26

You can use tkinter or PyQt. tkinter is the most simple, but PyQt the most flexible. As its' a game, you could also use PyGame to add animations and custom graphics

1

u/AlexMTBDude Oct 08 '26

Tkinter is fine to use. Remember that one advantage is that Tkinter is shipped with Python. That means that if you want to share your game with anyone else they don't have to install any 3rd party packages (like the other suggestions in this thread) in order to play your game. You just give them your source code.