-
Notifications
You must be signed in to change notification settings - Fork 99
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
issue with RectangularSelection #800
Comments
Hello, Anybody has any clue to fix this issue? Thanks in advance. Regards |
Sorry for the long delay in looking at this. It looks like there are a couple of things going on here. It looks like part of the problem is the way that key events are handled. If you run the sample code, you will see that the
The LassoSelection/RectangleSelection tools on the renderers have key interactions, so they will go through that codepath, which means the key event never gets to the FooTool on the Probably the easiest work-around this is to put the There may be some thought needed about the I'm not 100% sure what the issue is with the selection turning off. I only see this when you click (which the selection tool likely things of as the start of a new selection, and so deselecting things makes sense). The selection tools do have optional selection modes that extent or invert selections, so it may be that one of those makes more sense to use? |
Hello,
I have 2 issues using RectangularSelection.
See CME below showing the 2 issues.
CME is based on chaco/examples/demo/basic/scatter_rect_select.py.
I have added FooTool class, which displays "Foo!" when key "p" is pressed.
And added enable_rect_selection trait to enable/disable RectangularSelection.
First, if you set enable_rect_selection to False, you get:
Now, if you set enable_rect_selection to True, you get:
So, what I would like to have as behaviour, when enable_rect_selection is set to True, is:
How could I achieve this?
Thanks in advance.
Regards.
The CME:
Debian x86_64, Python 3.7.3, ETS source from git
The text was updated successfully, but these errors were encountered: