Python-Tkinter. how to close a window using the code and not the close button?

Asked

Viewed 641 times

1

there is some way to close the window created (container = Tk()) other than the button close? wanted to create by code, example: a login screen, when the login is done, the login screen closes and opens the program with the features created.

1 answer

1

You can use it :

container.destroy()

Browser other questions tagged

You are not signed in. Login or sign up in order to post.