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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |