Skip to content

macosx backend lacks support for cursor-type widgets #1319

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

Closed
efiring opened this issue Sep 29, 2012 · 4 comments
Closed

macosx backend lacks support for cursor-type widgets #1319

efiring opened this issue Sep 29, 2012 · 4 comments

Comments

@efiring
Copy link
Member

efiring commented Sep 29, 2012

In examples/widgets, the cursor, lasso_selector, multicursor, rectangle_selector, and span_selector all fail with macosx backend because of unimplemented features including, but perhaps not limited to, FigureCanvasMac.copy_from_bbox().

As a first step in keeping track of macosx anomalies, it would be nice to have all known limitations described in the module docstring.

It would probably also make sense to add the copy_from_bbox method, having it raise an UnimplementedError with a useful message to let the user know that this is a known limitation.

A note in the overall mpl docs would also be helpful.

@efiring
Copy link
Member Author

efiring commented Sep 29, 2012

This overlaps with #531, which is directed towards animation, but also points out the lack of blit support. The cursor-type widgets don't actually require blitting, but they need to be told whether to blit or not. This info should come from the backend, with a "can_blit" attribute, or something like that.

@WeatherGod
Copy link
Member

+1 on the "can_blit" attribute.

@mdehoon
Copy link
Contributor

mdehoon commented Mar 26, 2013

Instead of an explicit can_blit attribute, how about putting the copy_from_bbox in a try: block, and using the AttributeError as an indication that the backend cannot blit?

It would not be hard to add blit support to the Mac OS X backend, but that should be done as part of issue #531.

@mdboom
Copy link
Member

mdboom commented Mar 21, 2016

Fixed by #6178

@QuLogic QuLogic modified the milestones: 2.0 (style change major release), 2.1 (next point release) Mar 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants