Tk.destroy arguments
root = Tk()
#make sure that you define your Tkinter window , even though if you dont by impoerting tkinter if no Tk() window is defined it will automatically create one
root.destroy()
#here Tk.destroy() WILL NOT WORK
Tk.destroy arguments
root = Tk()
#make sure that you define your Tkinter window , even though if you dont by impoerting tkinter if no Tk() window is defined it will automatically create one
root.destroy()
#here Tk.destroy() WILL NOT WORK
python tkinter close gui window
from tkinter import *
root=tk.Tk()
root.destroy()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us