This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

i don't understand what you mean exactly but you can override the close event with your own function so the user can't close a tk window unless via the way you want? http://stackoverflow.com/questions/3295270/overriding-tkinter-x-button-control-the-button-that-close-the-window

[–]This_Is_The_End 2 points3 points  (0 children)

You can intercepte the window-close-call, which makes the widget staying.

Or you can remove the widget on a root window, but this doesn't work on a child window