+ 5

Between tkinter and PyQt, which is better for GUI development?

18th Dec 2016, 11:53 AM
OMAR KELVIN SURE
OMAR  KELVIN SURE - avatar
3 Antworten
+ 2
Well I've given both a really good try now. Tkinter and PyQt both let you create decent GUI's and are good fun to learn and play around with. But they are quite different. Generally speaking, with Tkinter you write the GUI yourself and tweak it, program your buttons, functions etc all within the same script, you really get to know your app inside out and you configure all its workings. In PyQt you tend to keep the GUI in a separate script and run your python guts from another script. Rather than code your user interface you can use the Qt Designer to set your app up and it's possible to get it looking really smart this way with the added bonus that it's much easier to modify later. There's some tricky things to get the hang of and documentation refers to the C++ but once you get the he hang of it, linking buttons etc to commands and functions is straight forward. My opinion is that overall PyQt is better and more sophisticated. But I'd recommend to do what I did and learn Tkinter first to improve your coding skills.
6th Apr 2018, 9:42 PM
JonnyBLtd
JonnyBLtd - avatar
+ 2
tkinter
18th Dec 2016, 7:04 PM
alirezasamimi100
alirezasamimi100 - avatar
+ 1
PyQt5 is far more powerful than Tkinter and will allow you to build complex applications — including multimedia, vector graphics, model views, etc. Tkinter is great for putting a simple UI on a command line script, or building basic utilities. Basically your choice depends on how far you want to take it or the kind of apps you want to build! Here are some example PyQt5 apps I wrote, maybe it gives you an idea :) https://www.learnpyqt.com/apps/
9th Jul 2019, 7:56 PM
Martin Fitzpatrick
Martin Fitzpatrick - avatar