When to use Variable classes? (BooleanVar, DoubleVar, IntVar, StringVar)

In a tkinter application, StringVar (as well as IntVar, BooleanVar, and DoubleVar) are very rarely needed. The underlying tcl/tk interpreter provides special features for all of its variables, so these wrappers exist to take advantage of those features. The two big advantages that these variables have are: You can associate one variable with more than … Read more

Removing the TK icon on a Tkinter window

On Windows Step One: Create a transparent icon using either an icon editor, or a site like rw-designer. Save it as transparent.ico. Step Two: from tkinter import * tk = Tk() tk.iconbitmap(default=”transparent.ico”) lab = Label(tk, text=”Window with transparent icon.”) lab.pack() tk.mainloop() On Unix Something similar, but using an xbm icon.