Python Forum

Full Version: Best GUI toolkit to learn
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, please what is the best Python GUI toolkit to learn and why? Thanks.
This is very much influenced on what you plan to accomplish with it.
My overall choice is wxpython (phoenix version), but right now I an writing an application using tkinter.
Qt5 is very popular, and a very good GUI package (pyqt5 for python), it has a stiffer learning curve, but is very well documented,
and offers the best assortment of widgets.

I'd take a look at: https://docs.python.org/3/faq/gui.html because there is no simple answer.
There is no such thing as best.

I would use tkinter as i am familiar with it. I think its easier to just get something up and running if it is not too complex. But if it was sell it, do certain tasks that tkinter could not handle, or invest years into it, i would use wxpython (phoenix)
I have a problem about buttons. Example:

root=Tk()

def callback():
print("My name is Kaan")

buton=ttk.Button(root, text="Callback", command=callback)
buton.pack()


That's okay. It works but it works when I pulled click from button. I need my function works when I clicked (at the moment of pushed). Also, I need my function work like while I am pushing to button (holding) then output might be

My name is Kaan
My name is Kaan
My name is Kaan
My name is Kaan
My name is Kaan
.
.
.

So is there any setting about push-pull of buttons?

Thank you all.
kaanertugrul, Please post separate thread.