Example #1
0
import sys
print "Win version:", sys.winver
import spam
print(spam.foo('hello world', 1))
p = spam.CreatePoint(10, 25)
print("Point:", p)
p.x = 58
print(p.x, p)
p.OffsetBy(5, 5)
print(p)
print("Current value of var test is: ", test)
test.Value = "New value set by Python"
print(spam.getdouble())
Example #2
0
import sys
import spam
print (spam.foo('hello world', 1))
p = spam.CreatePoint( 10, 25 )
print ('Point: ', p)
p.x = 58
print (p.x, p)
p.OffsetBy( 5, 5 )
print (p)
print ('Current value of var test is: ', test)
test.Value = ('New value set by Python')
print ('getdouble: ', spam.getdouble())
Example #3
0
import sys
print "Win version:", sys.winver
import spam
print spam.foo('hello world', 1)
p = spam.CreatePoint( 10, 25 )
print "Point:", p
p.x = 58
print p.x, p
p.OffsetBy( 5, 5 )
print p
print "Current value of var test is: ", test
test.Value = "New value set by Python"
print spam.getdouble()
Example #4
0
import sys
print "Win version:", sys.winver
import spam
print spam.foo('hello world', 1)
p = spam.CreatePoint(10, 25)
print "Point:", p
p.x = 58
print p.x, p
p.OffsetBy(5, 5)
print p
print "Current value of var test is: ", test
test.Value = "New value set by Python"
print spam.getdouble()