r/learnpython • u/Upstairs-Balance3610 • Jun 08 '24
Are there any GUI frameworks that can be used with Python?
I did my research and have concluded that NONE of Python's native GUI frameworks (TKinter, Kivy, PyQT) are worth using if you want to create a GOOD-LOOKING interface. I was initially drawn to Kivy because it's cross-platform, but after a 3 hour YT tutorial by a french guy, i realized it's not the one.
Are there any Frameworks I can use that aren't Python Native that can be used with Python? Preferrably cross-platform. I've heard people talking about Flutter in relation to Python but I couldn't get any confirmation
I've been through the subreddit and I realized this is a frequently asked question
3
u/JamzTyson Jun 08 '24
PyQt and PySide use Qt, as do many desktop apps in other languages. Qt is one of the most widely used cross-platform GUI libraries for both open source and commercial software. As you have ruled out this library, I doubt there will be any GUI library to satisfy you, so I suggest that you go with a web interface, then you have no-one to blame for what it looks like other than yourself.
2
u/Upstairs-Balance3610 Jun 08 '24
nah actually I haven't ruled QT, i just hadn't done much research
5
u/JamzTyson Jun 08 '24
In that case, if you are looking to make a desktop application, I'd suggest you take another look at Qt.
There are two alternatives for using Qt with Python: PyQt and PySide. They are very similar, but have different licenses.
There are two different toolkits for making Desktop GUIs within the Qt framework: Qt Widgets, and QtQuick. Qt Widgets is a more traditional, widget-based toolkit suitable for desktop-style applications, while QtQuick is a declarative toolkit, well suited to mobile platforms (though Python is rarely the best choice for mobile platforms).
Making a "good" GUI has more to do with "user experience", which comes from good design, rather than from the choice of GUI toolkit. While we all prefer to use nice looking software, most people would prefer to use ugly software that is easy to use and does the job, than beautiful looking software that is horrible to use.
2
1
u/SGS-Tech-World Jun 09 '24
Just to add to that go for PySide over PyQt as it has more lenient license.
This link might be useful.
2
u/Fred776 Jun 08 '24
Why have you ruled out Qt?
3
u/Upstairs-Balance3610 Jun 08 '24
I haven't. I just haven't researched it much, but judging from all the responses it's actually the best option
2
u/HistoricalCrow Jun 08 '24
Best option IMO.
It's the UI library of choice for most of the seasoned applications used in Film & Games, where good looking tools are needed to impress artists.
As with any framework, there are some annoyances, but you can make rich and powerful UIs with relative ease (once you overcome the initial learning curve).
5
u/KNuggies33 Jun 08 '24
Flet is nice looking because it's a Python wrapper around Flutter...but I'm just using Flutter to connect to a Python RestAPI instead.
1
u/Jello_Penguin_2956 Jun 09 '24
Check out PyQt this guy made. It really is just css styling and some animation.
https://www.youtube.com/watch?v=1v5errwE8ew&list=PLfQ7GQSrl0_vnzV9Jz4KxvQShF1KHb4k6
1
u/Upstairs-Balance3610 Jun 09 '24
wait... you can use CSS styling to develop mobile Apps with PyQT??????????
3
u/Healthierpoet Jun 08 '24
Nicegui I swear by it,
2
u/TK0127 Jun 09 '24
How quick is it to learn? I've been working at TKinter for a bit now. I'm a beginner to Python with a few months of practice.
2
u/Healthierpoet Jun 09 '24
It's pretty quick they have lots of snippet code to show you how it works and documents are really good.
2
1
1
1
u/QultrosSanhattan Jun 09 '24
I have tried every available framework, and PyQt feels like the most robust. It's not the easiest to use, but the layouts are automatic and come with harmonious margins by default (I'm looking at you, Tkinter). Additionally, you can style the components with CSS in any way you want.
3
u/JohnnyJordaan Jun 08 '24
PySimpleGUI, or consider building web-based using a web-framework.