Hi,

On Thu, 2008-07-17 at 16:55 -0400, Paul Kienzle wrote:
>    FigureCanvasBase:
>        def start_event_loop(self, ...): 
>            raise NotImplemented
>    FigureCanvasEventLoopMixin:
>        def start_event_loop(self, ...):
>            generic interactive using time.sleep
>    MyInteractiveBackend(FigureCanvasBase,FigureCanvasEventLoopMixin):
>        ... no start_event_loop since using the generic mixin ...
> 

So just to make sure that I understand this, "MyInteractiveBackend"
would be any backend canvas class for whom we want to implement the
standard generic mixin.  For example, the class FigureCanvasGTK would
inherit FigureCanvasEventLoopMixin until we get around to writing
something specific for GTK.  On the other hand, FigureCanvasWx wouldn't
inherit the mixin, but would use the WX specific code you sent
yesterday.  And FigureCanvasPs wouldn't get anything at all.  Am I
getting this?

If so, then I will go ahead and make the appropriate modifications.
Looking at the list of backends, I think it suffices to inherit the
mixin for the following backends: cairo, cocoagg, fltkagg?, gdk?, gtk,
qt4, qt, tkagg (wx covered with its own code).  All other interactive
backends should inherit from these.  The ones with the question marks I
am not really sure about, but will assume true unless told otherwise.

I agree with Gael that warning is probably sufficient.  This will allow
code running in the background to pass over interactive commands such as
ginput.  This may be better than an immediate error, but could cause
problems later in the script when data is expected, but one gets [].

Cheers,
David

-- 
**********************************
David M. Kaplan
Charge de Recherche 1
Institut de Recherche pour le Developpement
Centre de Recherche Halieutique Mediterraneenne et Tropicale
av. Jean Monnet
B.P. 171
34203 Sete cedex
France

Phone: +33 (0)4 99 57 32 27
Fax: +33 (0)4 99 57 32 95
http://www.ur097.ird.fr/team/dkaplan/index.html
**********************************



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to