Disable standalone windows on Tkinter

1

I need to create submenus in a Tkinter application. For this, I'm using Toplevel . However, it is crucial that when opening a submenu, the main window is disabled, which is not the case with Toplevel . Even with the submenu open, the main window remains active and receiving events. The big problem is that it will be possible to open infinite equal submenus using the same event to open the submenu in the main window.

I've already researched Toplevel and found nothing on. Is there any way to disable other windows while a Toplevel is open?

    
asked by anonymous 22.04.2016 / 07:29

0 answers