PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/director_stl_runme.py

#
Python | 39 lines | 27 code | 12 blank | 0 comment | 0 complexity | a888ec8fc67ad4602f918a109853026f MD5 | raw file
 1import director_stl
 2
 3class 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
20a = MyFoo()
21
22a.tping("hello")
23a.tpong("hello")
24
25p = (1,2)
26a.pident(p)
27v = (3,4)
28a.vident(v)
29
30a.tpident(p)
31a.tvident(v)
32
33v1 = (3,4)
34v2 = (5,6)
35a.tvsecond(v1,v2)
36
37vs=("hi", "hello")
38vs
39a.tvidents(vs)