bindings/python: printLn() variadic example
[sdk] / bindings / python / samples / sample.py
1 # -*- coding: utf-8 -*-
2 from pyEcere import *
3 app = GuiApplication()
4 printLn("Testing Variadic Functions!\n", 1, " + ", 2, " = ", 1+2)
5 printLn("Pi = ", 3.141592653589)
6
7 Window(
8    caption = "Hello, Python!!",
9    hasClose = True,
10    clientSize = Size(640, 480),
11    background = Color(b = 255))
12 Window(
13    caption = "Bindings are cool, 詠春 too!",
14    hasClose = True,
15    clientSize = Size(320, 200),
16    background = Color(255))
17
18 app.main()