Sorry if I was not specific with the question, but it is a bit long and it is my first time consulting programming issues. I was creating a Toplevel in Python with the Tkinter module and I wanted to block the events in the main window while it is open. Googled and I found the method "grab_set", which takes me to the other end. That is, it blocks the events in the top bar of the window (close, maximize and minimize). Is there something similar to grab_set but without this happening?
As an alternative, I can block all the entrys and buttons, but I don't know any way to unlink or re-link the binds. Is there any way?
original = Tk()
entrada = Entry(original)
entrada.pack()
def otra_ventana(Self):
ventana = Toplevel(original)
ventana.grab_set()
original.bind("<F1>", otra_ventana)
The above is a test code that has the problem that I mentioned.
Postscript: The problem only occurs when the Toplevel is open and an attempt is made to close the main window.
Thank you.
X
, and both working for me? Did you claim you can't close any of the windwo by clickingX
?