Category "tkinter"

How to pass arguments to a Button command in Tkinter?

Suppose I have the following Button made with Tkinter in Python: import Tkinter as Tk win = Tk.Toplevel() frame = Tk.Frame(master=win).grid(row=1, column=1) bu

How to change menu background color of Tkinter's OptionMenu widget?

If I take a simple example of OptionMenu from http://effbot.org/tkinterbook/optionmenu.htm, and add a line that sets background color (see below), only the butt

tkPDFViewer working only once then throw : image "pyimage1" doesn't exist

# Importing tkinter to make gui in python from tkinter import* # Importing tkPDFViewer to place pdf file in gui. # In tkPDFViewer library there is # an tkPDF

What does overrideredirect() do?

I have come to understand overrideredirect helps removing the default window decorations like the toolbar.What are its other uses? I am not very sure and couldn

Intercept Tkinter "Exit" command?

I'm writing a client-server program in Python with Tkinter. I need the server to keep track of the connected clients. For this, I would like to have the clien

Get Tkinter Window Size

How do I get the width and height of a Tkinter window?

How to change font size in ttk.Button?

This is my problem, I was building an interface for a program, but for needs of the bosses, the font must be larger. I have changed the font size of every widge

I am making a calculator and I get TypeError: can only concatenate str (not "int") to str [closed]

I was making a graphic calculator and I just received an error. Here is the code: from tkinter import * from PIL import * window = Tk() window

How to create a modal dialog in tkinter?

I have a MFC application which runs some embedded Python scripts. I am trying to make one of the dialogs this embedded script creates modal, but I am not having