implements reopenable context menus

adds <return> event for buttons
This commit is contained in:
2023-08-28 20:27:06 +01:00
parent 7b0f3d782a
commit 417a35764b
2 changed files with 37 additions and 11 deletions

View File

@@ -69,3 +69,11 @@ def get_asio_samples_list() -> list:
def get_tabs_labels() -> list:
return ["Settings", "Physical Strip", "Virtual Strip", "Buses"]
def open_context_menu_for_buttonmenu(window, identifier) -> None:
element = window[identifier]
widget = element.widget
x = widget.winfo_rootx()
y = widget.winfo_rooty() + widget.winfo_height()
element.TKMenu.post(x, y)