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

Right-click menus don't stick around on linux #374

Closed
jarvisteach opened this Issue Feb 12, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@jarvisteach
Copy link
Owner

jarvisteach commented Feb 12, 2018

Right-click menus work fine on mac/windows, but they disappear the moment you let go of the mouse on linux (Raspbian)

@jarvisteach jarvisteach added the bug label Feb 12, 2018

@jarvisteach jarvisteach added this to the 1.0 milestone Feb 12, 2018

jarvisteach added a commit that referenced this issue Feb 12, 2018

jarvisteach added a commit that referenced this issue Feb 12, 2018

More work on r-click #374
Right-click menu now `post` instead of `pop-up` - this seems to have no
affect on Mac, but keeps them present on linux.
They are also given focus, and bound to `focus_out` to call `unpost`

All mouse events, at the top level are then bound to `focus_set`
@jarvisteach

This comment has been minimized.

Copy link
Owner Author

jarvisteach commented Feb 12, 2018

Have migrated the 3 sets of r-click menus to use post instead of pop_up

This has no impact on Mac, but makes them stay on linux. However, they then don't disappear on Linux. So, have had to bind a focus_out event to unpost r-click menus, and then bind mouse events on topLevel to focus_in

Seems to do the trick.

jarvisteach added a commit that referenced this issue Feb 12, 2018

Updated properties #340
New property to enable/disable editMenu

Update to fonts, can now set them as a size or dict of properties
across all widgets & containers, as well as a property.

New widget property to link rightClick menus.

Also, moved setting focus on menus to before they are posted, as I
don’t think the code continues until the menu is closed. #374
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment