

UsePopupEas圜lose: true, // If true, popup can be closed by clicking on it anywhere UseBodyOverflow: true, // If true, the BODY tag is set to overflow: hidden when the popup is visible PopupIsFixed: false, // If true, popup won't resize to fit images WindowMargin: 50, // Window margin size (in pixels only comes into play when an image is larger than the viewport) Preload: false, // If true, preload fullsize images in the background #menuToggle input:checked~span:nth-last-child(3) Transform: rotate(45deg) translate(-2px, -1px) So, until the user clicks out of the focus of that menu, the program won't be coming out to execute the next lines of the function (in which you are calling the tk_popup for the submenu.) The reason is that using tk_popup or post will make the menu appear on the screen for sure, but then the program's focus gets shifted to the user's mouse and keyboard. Even if you add some gap to the x-y values using some integers, still you won't be seeing the second menu. (my_menu, my_menu2), but my attempt just displays both but with theįirst menu overlapping, so the other doesn't show. When I middle-click, I tried to make it so it displays both the menus You will have to create a customized menu bar without using the widget tk.Menu. "That's just not how Tkinter menus are designed to work." The first menu AND then automatically runs the cascade, as if it wasĬonsidering this answer by Bryan Oakley and the documentation available on the internet, there is no way for making a menu and a submenu visible simultaneously. So the question is, how do I make it so when middle-clicking, it opens
