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
(py-indent-right, py-outdent-left): new commands, bound to C-c C-r and
[python/dscho.git]
/
Mac
/
Lib
/
test
/
tctl.py
blob
862eeb5a3d671a64fbf4e6e3d8f100a4a246467e
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
9
def
main
():
10
r
= (
40
,
40
,
400
,
300
)
11
w
=
NewWindow
(
r
,
"The Spanish Inquisition"
,
1
,
0
, -
1
,
1
,
0x55555555
)
12
w
.
DrawGrowIcon
()
13
r
= (
40
,
40
,
100
,
60
)
14
c
=
NewControl
(
w
,
r
,
"SPAM!"
,
1
,
0
,
0
,
1
,
0
,
0
)
15
16
17
main
()