That fixed it!
Like most errors, this one is trivial when solved, but opaque beforehand. Many thanks, dwblas!
User Profile
Collapse
-
TkInter displays extra windows after winfo is called.
...Code:#! /usr/bin/python # This one creates three windows because of the Tk().winfo_screenwidth(), # Tk().winfo_screenheight() call from Tkinter import * def quit(): sys.exit(0) root = Tk() root.title("Test screen") w, h = Tk().winfo_screenwidth(), Tk().winfo_screenheight() h = h * 0.75 paper = Canvas(root, width = h, height = h, bg = "#000020")
No activity results to display
Show More
Leave a comment: