Problem with wxPyPlot under boa

under my sarge debian (linux)
I copy wxPyPlot.py in
/usr/lib/python2.2
/usr/lib/python2.2/site-packages
/usr/lib/python2.2/site-packages/wxPython

Hi,

Under windows the path is:
E:\Program Files\Python23\Lib\site-packages\wxPyPlot

Therefore I would expect under Linux you should add a directory called
wxPyPlot and add to it wxPyPlot.py and the __init__.py file.

Boa should then be able to find it.

···

Le lun 25/08/2003 à 01:27, Gordon Williams a écrit :
_____________________________
[wf:]
thanks for help but now i have other problem and other error :frowning:
Problem executing Plug-in in PyPlot.plug-in.py:User (under window) and
under linux

I will try to do it by hand (I have to learn using wxpython :slight_smile: )

Is it possible to ask you a simple help.

I have to plot 70 000 150 000 (vibration) line in a wxPyPlot windows and
i have to allow horizontal scrolling to move the windows but i do not
manage to do it

can you just help me to create the scrolling in a plotingwindows.

Thanks

regards

Regards,

Gordon Williams

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

--
William.famy@laposte.net
"Nothing would please me more than being able to hire ten
programmers and deluge the hobby market with good software."
  --Bill Gates 1976-- Nous attendons toujours...

Hi William and Gordon,

William Famy wrote:

under my sarge debian (linux)
I copy wxPyPlot.py in
/usr/lib/python2.2
/usr/lib/python2.2/site-packages
/usr/lib/python2.2/site-packages/wxPython

Boa uses wxPyPlot.py as a normal python module, so any of the
above paths would be fine, but adding to all three is not good.
Python will import the first one it finds, but it's
confusing and unnecessary to have mere than one.

Under windows the path is:
E:\Program Files\Python23\Lib\site-packages\wxPyPlot

Therefore I would expect under Linux you should add a directory called
wxPyPlot and add to it wxPyPlot.py and the __init__.py file.

Again, I think it's unnecessary to use it as a package
instead of a normal module.

And the import statement that the Designer generates is:
from wxPyPlot import *, which would import the contents
of __init__.py, which is blank in wxPyPlot.zip.
If you want the package way to work you either have to add
'from wxPyPlot import PlotCanvas' to your __init__.py or
change the plug-in code (writeImports) to do:
'from wxPyPlot.wxPyPlot import *'

I think Python23\Lib\site-packages\wxPyPlot.py it the best place.

Actually I think wxPyPlot should be part of wxPython.lib.
(Then I can would also distribute the Plug-in with Boa)

What do you think Robin? Gordon?

_____________________________
[wf:]
thanks for help but now i have other problem and other error :frowning:
Problem executing Plug-in in PyPlot.plug-in.py:User

The rest of the error would have been nice, but I think I recognise
it :slight_smile:

The issue here is that the wxPyPlot component is added to the
'User' Palette page.

In Boa 0.2.3 the UserCompanions.plug-in.py adds this page to the
Palette, so that plug-in must also be enabled and moved up in the
execution order so that it is executed before the wxPyPlot plug-in.
All this can be done under Preferences->Plug-ins->Plug-in files.

In the newest Boa from CVS (0.2.6) the User page is added by
default to avoid such pain for User components.

BTW Gordon, the newest Boa allows you to embed images in the
plug-in file. I've converted and embedded your Palette image.
You should also fix up all the DeprecationWarnings where
you pass float parameters instead of integers to the DC methods.

Cheers,
Riaan.

···

Le lun 25/08/2003 à 01:27, Gordon Williams a écrit :