source: trunk/environments/g4py/tests/test10/test.py

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

tag geant4.9.4 beta 1 + modifs locales

  • Property svn:executable set to *
File size: 585 bytes
Line 
1#!/usr/bin/python
2# ==================================================================
3# python script for Geant4Py test
4#
5#
6# ==================================================================
7import test10
8
9class MyX(test10.XBase):
10  "My X"
11
12  def VMethodA(self, a):
13    print "*** MyX::VMethod...A() is called."
14   
15  def VMethodB(self, b):
16    print "*** MyX::VMethod...B() is called."
17
18
19x= test10.XBase()
20myx= MyX()
21z= test10.ZClass()
22
23print "!!! direct call via C++ pointer"
24z.SetXBase(x)
25z.Process()
26
27print ""
28print "!!! call via python inheritor"
29z.SetXBase(myx)
30z.Process()
31
Note: See TracBrowser for help on using the repository browser.