File: tctl.py

package info (click to toggle)
python2.1 2.1.3dfsg-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 38,028 kB
  • ctags: 64,228
  • sloc: python: 186,023; ansic: 184,754; xml: 43,435; sh: 12,381; makefile: 3,523; perl: 3,108; lisp: 2,460; cpp: 106; sed: 2
file content (20 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# play with controls

from Dlg import *
from Ctl import *
from Win import *
from Evt import *
import time
import sys

def main():
	r = (40, 40, 400, 300)
	w = NewWindow(r, "The Spanish Inquisition", 1, 0, -1, 1, 0x55555555)
	w.DrawGrowIcon()
	r = (40, 40, 100, 60)
	c = NewControl(w, r, "SPAM!", 1, 0, 0, 1, 0, 0)
	print 'Ok, try it...'
	sys.exit(1)  # So we can see what happens...


main()