projects
/
wxWidgets.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
don't really enable the window when its parent is disabled, just remember to do it...
[wxWidgets.git]
/
wxPython
/
tests
/
test_stattextFont.py
1
import
wx
2
3
def
doStuff
(
stattxt
):
4
print
stattxt
.
GetSize
(),
stattxt
.
GetBestSize
()
5
stattxt
.
SetFont
(
wx
.
FFont
(
24
,
wx
.
SWISS
))
6
print
stattxt
.
GetSize
(),
stattxt
.
GetBestSize
()
7
8
app
=
wx
.
App
(
False
)
9
f
=
wx
.
Frame
(
None
)
10
p
=
wx
.
Panel
(
f
)
11
f
.
Show
()
12
s
=
wx
.
StaticText
(
p
, -
1
,
"This is a test"
, (
20
,
20
))
13
wx
.
CallLater
(
2000
,
doStuff
,
s
)
14
app
.
MainLoop
()
15