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
Updated for hfsplus module, new gusi libs.
[python/dscho.git]
/
Mac
/
Lib
/
test
/
test_setcontroldata.py
blob
81672145ac48a28b2719d342998eedb66e3fbc36
1
import
W
2
from
Carbon
.
Controls
import
*
3
4
w
=
W
.
Window
((
200
,
200
),
"Test"
)
5
6
w
.
c
=
W
.
Button
((
5
,
5
,
100
,
50
),
"Test"
)
7
8
w
.
open
()
9
10
print
repr
(
w
.
c
._
control
.
GetControlData
(
0
,
'dflt'
))
11
12
str
=
'
\001
'
13
w
.
c
._
control
.
SetControlData
(
0
,
'dflt'
,
str
)