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
FigureCanvasMac.flush_events() raises NotImplementedError #197
Comments
I'm not sure there's a Cocoa API for this: http://www.cocoabuilder.com/archive/cocoa/149352-flushing-events.html It appears that event polling was phased out after OS 9. Perhaps a |
Actually why is a flush_events method needed? It is not used in the matplotlib source code. Perhaps it is better to remove flush_events altogether? |
@mdehoon, flush_events dates back to February, 2008 as part of the official API for gui backends, so even though we don't use it internally or in examples, we can't just rip it out. It appears to be carefully implemented in the other gui backends, and at least for them it seems to be a reasonable method to have available. Therefore I think that adding it to the macosx backend as a no-op (if indeed there is not equivalent functionality available) would be the simplest way to solve the problem and close this issue. |
OK, I'll add it then. This can be done on MacOSX using NSView displayIfNeeded. |
Resolved by #2245. |
Original report at SourceForge, opened Thu Mar 10 10:39:14 2011
FigureCanvasMac seems like it should be a "backend with GUI", but it doesn't implement flush_events(). Seems like it should
pass
, if nothing else.SourceForge History
The text was updated successfully, but these errors were encountered: