diff options
Diffstat (limited to 'src/samples/attributes.py')
-rwxr-xr-x | src/samples/attributes.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/samples/attributes.py b/src/samples/attributes.py new file mode 100755 index 0000000..b4aa6d4 --- /dev/null +++ b/src/samples/attributes.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from libavg import avg, player + +canvas = player.createMainCanvas(size=(640,480)) +rootNode = canvas.getRootNode() +node = avg.WordsNode(pos=(10,10), text="Hello World", parent=rootNode) +print node.x +node.x = 200 +player.play() |