File: pudding-1.py

package info (click to toggle)
soya-doc 0.11.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,080 kB
  • ctags: 805
  • sloc: python: 3,380; makefile: 5
file content (18 lines) | stat: -rw-r--r-- 368 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# -*- indent-tabs-mode: t -*-

import soya
import soya.pudding as pudding

soya.init()
pudding.init()

scene = soya.World()

camera = soya.Camera(scene)

soya.set_root_widget(pudding.core.RootWidget())
soya.root_widget.add_child(camera)

text = pudding.control.SimpleLabel(soya.root_widget, label = "Hello World!",  autosize = True)

pudding.idler.Idler(scene).idle()