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
ActionGroup in spinner mode doesn't close on selection. #1906
Comments
The issues is that the button's click isn't being mapped to anything. by adding Is there ever a case where you would want the popup to remain even after clicking a button (I'm thinking of "pinned" menubars here)? If not, sane defaults might make sense here. |
Adding on_press events does not seem to change the behavior of the dropdown. |
I wasn't specific enough, and even used the wrong event. Firstly, it needs to specifically be connected to the ActionGroup's dropdown's select event. Secondly, it should be the on_release button: https://gist.github.com/aspidites/9130590 I might have missed something, but it seems there should be a more direct way to get to the underlying dropdown. or perhaps default behavior for a list of widgets should be available (eg. for items that are clickable, the released property should be bound to). |
That approach works fine for ActionGroups their mode set to 'spinner'. Things get a little more interesting when accommodating the overflow behavior of buttons directly in an ActionView. https://gist.github.com/philwrenn/9135418 Also, since ActionItems in an ActionGroup without an explicit mode may render either way, depending on space, I was thinking you would always want to call select on the ActionGroup's dropdown. The problem is that causes an error if the ActionGroup renders in normal mode. |
While they are both related to each other, neither of them is related to this issue. Please open a separate issue for those. In the meantime I'm looking at what causes the behavior at the moment. |
I think what's essentially going on is that if an ActionOverflow doesn't have a parent, the dropdown errors out because it can't properly call |
Any updates on a successful approach to auto close the dropdown on selection? |
If I run run the actionbar.py module directly, executing the "if main" block. The actionbar example loads without error. On my system both of the ActionGroups are displayed in spinner mode due to the available space. If I click an ActionGroup spinner it opens, but selecting an item in the group does not close the dropdown. The only way I have found to close the dropdown it to click elsewhere on the screen.
https://gist.github.com/philwrenn/9121379
There were no errors. I just added the log per the posting instructions.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: