Answers for "close window tkinter"

8

how to manually close tkinter window

root = tk()
root.destroy()
Posted by: Guest on November-07-2020
6

python tkinter close gui window

from tkinter import *
root=tk.Tk()
root.destroy()
Posted by: Guest on May-01-2020
1

how to kill tkinter

root=Tk()
root.destroy()
Posted by: Guest on March-21-2020
0

close window tkinter

try:
    import Tkinter as tk
except:
    import tkinter as tk

root = tk.Tk()
root.geometry("100x50")

def close_window():
    root.destroy()

button = tk.Button(text = "Click and Quit", command = close_window)
button.pack()

root.mainloop()
Posted by: Guest on November-06-2020
3

python tkinter how to close a window

root.destroy()
Posted by: Guest on January-02-2021

Code answers related to "close window tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language