[Python-gtkextra-commits] CVS: python-gtkextra2/examples test.sh,1.1.1.1,1.2 testboxes.py,1.2,1.3 te
Status: Beta
Brought to you by:
treeves
From: <pyt...@li...> - 2002-07-22 13:06:57
|
Update of /cvsroot/python-gtkextra/python-gtkextra2/examples In directory usw-pr-cvs1:/tmp/cvs-serv27698/examples Modified Files: test.sh testboxes.py testgtkplot.py Log Message: More examples mostly run. GtkExtra fixes Index: test.sh =================================================================== RCS file: /cvsroot/python-gtkextra/python-gtkextra2/examples/test.sh,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** test.sh 10 Jul 2002 19:06:54 -0000 1.1.1.1 --- test.sh 22 Jul 2002 13:06:54 -0000 1.2 *************** *** 1,3 **** #!/bin/sh ! PYTHONPATH=../gtkextra/.libs LD_PRELOAD=/usr/lib/libgtkextra-x11-1.1.so.0 python2 $@ --- 1,24 ---- #!/bin/sh ! [ $1 = "-gdb" ] && DEBUG=1 && shift ! ! if test -z $1; then ! echo ! echo "Run example program in development tree" ! echo "Use: $0 [-gdb] filename.py" ! echo "Toby D. Reeves <to...@so...>" ! exit 0 ! fi ! ! export PYTHONPATH=../:../gtkextra/:$PYTHONPATH + if test -z $DEBUG; then + python2 -c "import ltihooks;del ltihooks;execfile('$1')" + else + python2 -c "\ + import ltihooks + del ltihooks + import os + raw_input('Attach gdb on %d. Press return to begin \"$1\".' % os.getpid()) + del os + execfile('$1')" + fi Index: testboxes.py =================================================================== RCS file: /cvsroot/python-gtkextra/python-gtkextra2/examples/testboxes.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** testboxes.py 16 Jul 2002 17:05:13 -0000 1.2 --- testboxes.py 22 Jul 2002 13:06:54 -0000 1.3 *************** *** 61,65 **** if __name__ == '__main__': - raw_input("attach now") app = Application() gtk.main() --- 61,64 ---- Index: testgtkplot.py =================================================================== RCS file: /cvsroot/python-gtkextra/python-gtkextra2/examples/testgtkplot.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** testgtkplot.py 16 Jul 2002 17:05:14 -0000 1.4 --- testgtkplot.py 22 Jul 2002 13:06:54 -0000 1.5 *************** *** 241,245 **** if __name__ == '__main__': - raw_input("attach now") app = Application() gtk.main() --- 241,244 ---- |