File: runme.py

package info (click to toggle)
cableswig 0.1.0%2Bcvs20060311-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 16,044 kB
  • ctags: 10,703
  • sloc: cpp: 33,966; ansic: 32,676; yacc: 3,999; makefile: 3,822; python: 2,387; ruby: 2,063; lisp: 1,841; java: 1,817; tcl: 1,097; php: 908; ml: 804; perl: 686; cs: 206; sh: 161
file content (17 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# file: runme.py

import example 

# Create an object
v = example.Vector()

print "Setting some values"
# Set some values (using functions instead of attributes)
v.set_x(3.5)
v.set_y(4.0)
v.set_z(10.5)

# Get some values
print v
print v.x(), v.y(), v.z()