From: Alan W. I. <ai...@us...> - 2001-11-10 21:24:50
|
Update of /cvsroot/plplot/plplot/examples/python In directory usw-pr-cvs1:/tmp/cvs-serv12272 Modified Files: README.python xw01.py xw02.py xw03.py xw04.py xw05.py xw06.py xw07.py xw08.py xw09.py xw10.py xw11.py xw12.py xw13.py xw14.py xw15.py xw16.py xw17.py xw18.py xw19.py Added Files: pythondemos.py Log Message: Change all xw??.py examples so they are no longer standalone. Instead, they are imported by pythondemos.py in analogy with the way that the tcl demos are called from tcldemos.tcl. The advantage here is that only pythondemos.py has to be filtered on installation. Changes: (1) put filtering into pythondemos.py and remove it from xw??.py (2) parse command line, plinit, and plend in pythondemos.py and remove from xw??.py (3) Restore defaults at the end of each demo (whenever, e.g., colour and fonts are changed within the demo) so that the next demo is unaffected by the previous ones. Testing: pythondemos.py works fine within tmp (except for xw09.py which is commented out because it segfaults as per the already reported bug). Still to do: Some minor configuration changes and test script changes, with the goal that with a clean checkout from cvs and subsequent build and install, plplot-test.sh runs pythondemos.py rather than the individual xw??.py examples from both the tmp and installed locations. |