-
-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Focus handler on a menu doesn't see that the menu has lost focus #2245
Labels
Comments
As usual, I've got a fix for this issue :). Going to push a bit later. |
v-ein
added a commit
to v-ein/DearPyGui-fixes
that referenced
this issue
Dec 30, 2023
Also, restored indentation in draw_menu() - it's much easier to read now.
hoffstadt
pushed a commit
that referenced
this issue
Jan 6, 2024
Also, restored indentation in draw_menu() - it's much easier to read now.
v-ein
added a commit
to v-ein/DearPyGui-fixes
that referenced
this issue
Jan 10, 2024
hoffstadt
pushed a commit
that referenced
this issue
Jan 10, 2024
SamuMazzi
pushed a commit
to SamuMazzi/DearPyGui
that referenced
this issue
Jan 31, 2024
Also, restored indentation in draw_menu() - it's much easier to read now.
SamuMazzi
pushed a commit
to SamuMazzi/DearPyGui
that referenced
this issue
Jan 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version of Dear PyGui
Version: 1.10.1
Operating System: Windows 10
My Issue/Question
When an
item_focus_handler
is bound todpg.menu
, it gets called every frame as soon as the menu is activated, which is expected behavior for this handler. What's not expected though, it goes on forever even after the menu has been deactivated. That is, the menu is no longer shown but the handler still gets called every frame. It looks as if the focused state for the menu were not properly reset to False.An interesting fact, the Item Registry tool does show the menu as "not focused" when it's not active. However, the focus handler gets called even when Item Registry shows "Focused: False").
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Menus should get back to the unfocused state when they are deactivated.
Screenshots/Video
Standalone, minimal, complete and verifiable example
The text was updated successfully, but these errors were encountered: