source: trunk/environments/g4py/tests/test12/test.py @ 1354

Last change on this file since 1354 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

  • Property svn:executable set to *
File size: 496 bytes
Line 
1#!/usr/bin/python
2# ==================================================================
3# python script for Geant4Py test
4#
5#
6# ==================================================================
7import test12
8
9a= test12.AClass()
10a.ival=10
11
12b= test12.AClass()
13b.ival=20
14
15c= test12.AClass()
16c.ival=30
17
18v= test12.AVector()
19v[:]= [a, b, c]
20
21print "*** size of vector= ", len(v)
22x=v[0]
23
24print ""
25print "*** a vs v[0]"
26a.Print()
27x.Print()
28
29print ""
30print "*** dump vector..."
31test12.PrintVector(v)
32
33
34
35
36
Note: See TracBrowser for help on using the repository browser.