From: Alan W. I. <ir...@be...> - 2001-11-16 04:25:53
|
On Fri, 16 Nov 2001, Alessandro Mirone wrote: > Hallo, > I have fixed the behaviour of prova.py > concerning the loading of xw??.py. > In particular the exec statement now runs properly > ( for python expert I passed the globals() name space > to exec so that the functions defined in xw??.py > dont get fooled by different scopes) Now in cvs with one change. xw??.py --> *.py (which allows access to all the python scripts in the current directory which I believe is a better approach). I too noticed that you could type import xw08 (for example) before and run it, but you could not open xw08 with the widget and run it. Now you can. Thanks very much for this fix to the problem. > I also added few lines for python2.1 in the configure files. Now in CVS (although I also hope you try out python-1.5). > > I also had a problem compiling with --with-double=yes (necessary > for Numeric) : > I had to copy manually > cp tmp/strutil.o tmp/shared/ > or libplplotd.so did'nt get compiled > Discussed elsewhere with question for you about whether you still see this problem. > Alan > , you wish I could fix the page control for the qt widget. > If I understand well you mean the interacting behaviour, isn't it? > When you click, or press a key a new example page is plotted, right? > Concerning, this point, interactivity, I think that a lot of thing may be > done, bypassing plplot and using python. For an example of the problem, try xw08.py. (This problem also occurs in xw01.py, but it goes by so fast you literally cannot see it.) How do you get access to the various pages of xw08 (and other multi-page examples)? For a KDE solution of a similar problem, look at how kview allows you to go forward and back between various image files using arrow keys on the toolbar. ./pythondemos.py -fam -fflen 2 -dev png -o test.png kview test.png.* (Be sure to enable the toolbar so you can see the arrows used for moving between files.) It would be nice to have something similar for the pyqt widget to navigate between various pages of an image. Viewing various pages of an image is, of course, different than viewing various image files, but the widget part of it is similar. Yes, please use the pyqt facilities to provide page access if that is possible. (I am assuming here that the pyqt widget has this possibility.) If this is difficult and not obvious, then I don't mind if you put it off until after the release. Probably a higher priority at the moment is getting everything working cleanly under python-1.5 (note my request for your comments on my hack to qplplot.py so it would work under python-1.5). Thanks once again for your help. Alan |