Backend for Pyside

Wouldn't it be possible to use a single backend compatible with both
PyQt and Pyside ?

Other projects (enthought, ipython, spyderlib) seem to be able to
handle the issue by importing from a proxy qt module that does the
right imports and handles the incompatibilities. The preferred backend
is set through an environment variable.

Re: Backend for Pyside

by Gerald Storer Mar 23, 2011; 08:33am :: Rate this Message: - Use
ratings to moderate (?)

I've just noticed that its possible to use an external package as a
back end so I moved my changes into their own package. This is
sufficient for my own use but I'm guessing others may find is useful
as well (and it might speed official support).

Attached is the package. (pysidempl)

Regards,
Gerald.

···

--
thanks,
peter butterworth

Yes. IPython certainly has what looks like a reasonable "recipe" to
support PySide and PyQt4. I would much prefer this approach. Anything
to keep the number of code paths down in the different backends is well
worth the effort.

Mike

···

________________________________________
From: Peter Butterworth [butterw@...149...]
Sent: Sunday, March 27, 2011 1:10 PM
To: matplotlib-devel
Subject: Re: [matplotlib-devel] Backend for Pyside

Wouldn't it be possible to use a single backend compatible with both
PyQt and Pyside ?

Other projects (enthought, ipython, spyderlib) seem to be able to
handle the issue by importing from a proxy qt module that does the
right imports and handles the incompatibilities. The preferred backend
is set through an environment variable.

Re: Backend for Pyside

by Gerald Storer Mar 23, 2011; 08:33am :: Rate this Message: - Use
ratings to moderate (?)

I've just noticed that its possible to use an external package as a
back end so I moved my changes into their own package. This is
sufficient for my own use but I'm guessing others may find is useful
as well (and it might speed official support).

Attached is the package. (pysidempl)

Regards,
Gerald.

--
thanks,
peter butterworth

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options