repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Clarify portability and main program.
[python/dscho.git]
/
Mac
/
Lib
/
test
/
tctl.py
blob
a255c56671255d9ea31705c0866965b660cd45f4
1
# play with controls
2
3
from
Dlg
import
*
4
from
Ctl
import
*
5
from
Win
import
*
6
from
Evt
import
*
7
import
time
8
import
sys
9
10
def
main
():
11
r
= (
40
,
40
,
400
,
300
)
12
w
=
NewWindow
(
r
,
"The Spanish Inquisition"
,
1
,
0
, -
1
,
1
,
0x55555555
)
13
w
.
DrawGrowIcon
()
14
r
= (
40
,
40
,
100
,
60
)
15
c
=
NewControl
(
w
,
r
,
"SPAM!"
,
1
,
0
,
0
,
1
,
0
,
0
)
16
print
'Ok, try it...'
17
sys
.
exit
(
1
)
# So we can see what happens...
18
19
20
main
()