You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you post the code where you tried to use the add_popup mechanism?
You can get a reference to the active popup using the root element:
root._popup
When there isn't an active one, this will be set to None. The current logic doesn't really support adding hotkeys to popups, although that shouldn't be too challenging to add if it is a worthwhile feature.
I'm making a menu that, ideally would display on the existing terminal output, without the "root" window, it also has key shortcuts for each item.
I tried using add_popup, but on my first try:
In the end, I've used a normal menu, it's not ideal, as the background is there and it's possible to focus the root element.
(My use-case for the hotkeys is a scenario where the screen is sometimes blank).
Here's the for a menu of options code so far - are there some really obvious things I'm missing ?
The text was updated successfully, but these errors were encountered: