import source from 1.3.40
[external/swig.git] / Examples / test-suite / python / director_stl_runme.py
1 import director_stl
2
3 class MyFoo(director_stl.Foo):
4   def ping(self, s):
5     return "MyFoo::ping():" + s
6
7   def pident(self, arg):
8     return arg
9     
10   def vident(self,v):
11     return v
12
13   def vidents(self,v):
14     return v
15
16   def vsecond(self,v1,v2):
17     return v2
18
19
20 a = MyFoo()
21
22 a.tping("hello")
23 a.tpong("hello")
24
25 p = (1,2)
26 a.pident(p)
27 v = (3,4)
28 a.vident(v)
29
30 a.tpident(p)
31 a.tvident(v)
32
33 v1 = (3,4)
34 v2 = (5,6)
35 a.tvsecond(v1,v2)
36
37 vs=("hi", "hello")
38 vs
39 a.tvidents(vs)