r/learnpython • • Feb 20 '24

What python GUIs do you recommend?

Hi all! With the recent planned 'sunset' of pySimpleGUI 4 and questionable license for psg 5 which GUI library do you recommend? About my work: I'm a scientist in a field on nanophysics and I have to put many graphs into my programs and prefer GUI building to be the lesser problem;)

Upd: I worked for a year or so with psg but now want to move

Upd2: Big thanks to all of you for the suggestions! If anyone curious, I settled with DearPyGUI as it seems to meet all my needs and isn't (sorry) web-based.

Upd3: Their digital signature is so broken, it required like 30 minutes to tamper their code LOL

111 Upvotes

68 comments sorted by

View all comments

116

u/jimtk IdontChat Feb 20 '24

Tkinter: Easy, quick, in standard library. Not too many options, looks awful, cracks at the seam on complex things, documentation is between bad and non-existent. Custom-tkinter (look for it on github) makes it look better.

Pyside6/PyQt6: Extremely powerful, has everything and 3 kitchen sinks, looks as good as you want, reliable. Pretty big learning curve, documentation is geared to c++, once you get in the qt boat you stay on the qt boat.

html/CSS/Javascript. As complex as you want, good learning opportunity, can look amazing, usable on phone and tablet, final app is easy to distribute and update. Requires a server (that's huge!), need to learn multiple languages and frameworks so big learning curve, cannot center a div :) !

28

u/reddaxetheintrovert Feb 20 '24

Very nice description of Tkinter 🤣🤣🤣

19

u/_UnreliableNarrator_ Feb 20 '24

Oh so it's not my fault my one attempt at a tkinter app visually looks like dogshit from 1993

12

u/Playful_Round_6530 Feb 20 '24

cannot center a div got me 🤣🤣

7

u/pigguy35 Feb 20 '24

Yeah how does tkinter have such garbage documentation. I spent like an hour just trying to find a full list of controls, let alone how to you use them.

5

u/TrooperStorm316 Feb 20 '24

Sidenote: Ttkbootstrap makes tkinter look less awful

https://ttkbootstrap.readthedocs.io/en/latest/#sample-themes

4

u/xtotdam Feb 20 '24

Thank you for your suggestions. I am now looking in the direction of dearpygui, as it looks nice and seems to be fast and has many different plot features built-in

5

u/Kooky-Most5115 Feb 20 '24

I agree with this post, I'd just say, that I've found that using chatgpt got me past the pyside6 learning curve pretty quickly (although I'd spent a couple years making tkinter apps as experience beforehand).

2

u/MaveDustaine Feb 20 '24

I use Tkinter for a script in my org, it's served me great so far! I added three tabs, buttons, text boxes, all the things!

1

u/c_299792458_ Feb 20 '24

Requires a server (that's huge!)

The http.server module is a quick way to stand up a server for localhost applications.

1

u/Efficient-Table-3226 Feb 20 '24

Interesting. Are there any guides that cover the basics of that?

The more I use tkinter the more I hate it and I'd love to try something else that is not PySide/PyQT.

Last I looked into using html/css/js with python everyone pointed me to using flask or django which seem less suitable for a localhost desktop application.

1

u/CptBadAss2016 Feb 21 '24

Why specifically not Qt?

1

u/dukea42 Feb 20 '24

Very nice description of Pyside/PtQT. You find yourself using one kitchen sink and the guide you are using talking about a different sink.

1

u/TabAtkins Feb 20 '24

can't center a div

Sorry you're still supporting IE8 somehow. Sucks to be you, but not relevant for others.

(Flexbox makes this simple. Grid makes it trivial.)

1

u/FerricDonkey Feb 21 '24

Despite agreeing with your description, I still generally use tkinter, because it's fairly easy to get basic things going, and I never need anything super complicated with it.

1

u/sylfy Feb 21 '24

localhost is also a server.