Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
0930c43e43f79617a33a6c3be32afbe184780307
/
.
/
Mac
/
IDE scripts
/
Widget demos
/
ModalDialog.py
blob: 801dfd4eb0642ed6d9144c7637d1949b0ab66bc0 [
file
] [
log
] [
blame
]
import
W
from
Carbon
import
Windows
w
=
W
.
ModalDialog
((
100
,
100
))
w
.
ed
=
W
.
EditText
((
10
,
10
,
80
,
50
))
w
.
ok
=
W
.
Button
((
10
,
70
,
80
,
16
),
"Ok"
,
w
.
close
)
w
.
setdefaultbutton
(
w
.
ok
)
w
.
open
()