Werner,

Just to finish up the earlier agg discussion - I got all three
backends working and tested  (including agg with wxImage) in the code
I attached to my last message.

> I need to talk/mail with Allan, what the best way is to include the wxphyton
> bindings - if we make them "full" bindings, or add them to the existing
> python bindings. We must also change the Cmake build system, so that these
> bindings (and the example) are only build if wxpython is installed.

I suggest that it should be in a separate file from the existing
python bindings. The reason is that if you are writing a non-wxpython
app in python, you don't want plplot to load wx, which would slow down
loading and could even conflict with another toolkit (such as pyQT or
Tkinter). If you import the plplot-wxpython bindings, you won't
usually need to separately import the plplot-python bindings.

> Do you know how one can find out if wxpython is available? So, python must
> be available, and if a little python program which imports wx runs without
> problem, then everything should be ok, or?

In python, you can check for wxpython with something like:

try:
    import wx
except ImportError:
    # wxPython not found
    pass
else:
    # wxPython found
    pass

where you replace the pass statements with whatever you want done in
those cases. Note that nothing extra should need to be compiled for
the wxpython driver, since it is all in pure python (assuming the
plplotcapi.i changes are always included).

One more item: I noticed that the plplot python files use a mix of
tabs and spaces for their indentation, which is generally considered a
bad thing. I found that the example files could be converted to all
spaces with:
"sed 's/\t/        /g' oldfile.py >newfile.py"
although in general you may have to change the number of spaces that
the tab is replaced with.

My next question is perhaps more problematic: is there a chance of
regular releases of a windows build of plplot in the future? Now that
it is working so well for me, I would really like to use plplot from
wxpython in windows, but I have no experience building on windows or
cross-compiling. Probably this is a discussion for a new thread...

I noticed Alan just responded to the last email, but I am sending this
anyway because it looks like we are basically in agreement.

Thanks,
Brian

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to