Top "Tkinter" questions

Tkinter is the standard Python interface to the "Tk" graphical user interface toolkit.

When do I need to call mainloop in a Tkinter application?

Every tkinter tutorial I have seen claims that tkinter.mainloop must be called for windows to be drawn and events …

python tkinter
Is there a way to make the Tkinter text widget read only?

It doesn't look like it has that attribute, but it'd be really useful to me.

python text tkinter
How to get tkinter canvas to dynamically resize to window width?

I need to get a canvas in tkinter to set its width to the width of the window, and then …

python canvas python-3.x tkinter autoresize
How to create a self resizing grid of buttons in tkinter?

I am trying to create a grid of buttons(in order to achieve the clickable cell effect) with Tkinter. My …

python button grid tkinter autoresize
Fresh tutorial on tkinter and ttk for Python 3

Where can I find the most modern tutorial that teaches tkinter together with ttk? Tkinter seems the only way to …

python-3.x tkinter ttk
Getting Checkbutton state

How do I get the 'state' of a Tkinter Checkbutton? By 'state' I mean get whether or not it has …

python tkinter tkinter.checkbutton
Tkinter: AttributeError: NoneType object has no attribute <attribute name>

I've created this simple GUI: from tkinter import * root = Tk() def grabText(event): print(entryBox.get()) entryBox = Entry(root, width=60).…

python user-interface tkinter
How to change a widget's font style without knowing the widget's font family/size?

Is there a way to change a Tkinter widget's font style without knowing the widget's font family and font size? …

python user-interface fonts tkinter
How to specify where a Tkinter window opens?

How can I tell a Tkinter window where to open, based on screen dimensions? I would like it to open …

python python-2.7 tkinter
Correct way to implement a custom popup tkinter dialog box

I just started learning how to create a custom pop up dialog box; and as it turns out, the tkinter …

python tkinter dialog tkmessagebox