How to "contrib"

I have a class that I think would be of general use to others that I
thought I would suggest for addition to the "contrib" modules. Is it a
requirement for the wxPython contribs to be part of the wxwindows
contribs?

The reason I ask is that the class is a generic image viewer module that
does smooth scaling (zoom in, zoom out, fit to width, etc) using the
gdk-pixbuf library which can be hard to do with a good level of
performance using wxPython only (which was what I tried first, just too
slow using pil) but isn't as hard if you are using c++ (plenty of good
imaging libraries available in C). I imagine that the gdk-pixbuf
requirement might be a sticking point since it is not, afaik, available
on the mac platform.

Is this the right place to ask? Does anyone think this would be a useful
addition to the wxPython contribs? if not, I can just put the code up on
sourceforge or something for anyone who wants it. Anyone have tips on
how I could make the installation of this addon work with the stock
wxPython binaries?

-Mark

Roach, Mark R. wrote:

I have a class that I think would be of general use to others that I
thought I would suggest for addition to the "contrib" modules. Is it a
requirement for the wxPython contribs to be part of the wxwindows
contribs?

No, I have a couple things that are only in wxPython/contrib. I just add the C++ sources for the contrib there in addition to the wrapper code.

The reason I ask is that the class is a generic image viewer module that
does smooth scaling (zoom in, zoom out, fit to width, etc) using the
gdk-pixbuf library which can be hard to do with a good level of
performance using wxPython only (which was what I tried first, just too
slow using pil) but isn't as hard if you are using c++ (plenty of good
imaging libraries available in C). I imagine that the gdk-pixbuf
requirement might be a sticking point since it is not, afaik, available
on the mac platform.

It probably is available via fink, but I wonder if there are any similar libraries that might be more generallly available and have less dependencies? (I prefer to keep the external dependencies to a minimum.) I once started looking into the feasibility of using PIL from C and doing the PIL Image --> wxBitmap conversion in C++ code, but I didn't get very far before I had other priorities get in the way. Perhaps that is another possibility that would work in this case...

Is this the right place to ask? Does anyone think this would be a useful
addition to the wxPython contribs?

Yes.

sourceforge or something for anyone who wants it. Anyone have tips on
how I could make the installation of this addon work with the stock
wxPython binaries?

That is something we are struggling with for wxMozilla over the past couple weeks. There is no good answer yet.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

but I wonder if there are any similar
libraries that might be more generallly available and have less
dependencies?

You might want to check out the antigrain library:

http://www.antigrain.com/

The SciPy/Chaco foplks are using it for their bitmap rendering, so have
made Python wrappers for it, and are making it work with wxPython. It
looks like it has nice scaling of pixel images (and some very nice
rendering...)

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov