mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 20:40:11 +01:00
10 lines
294 B
Python
10 lines
294 B
Python
|
|
# Create the initially empty label with the size big enough to show
|
|
# the given string.
|
|
dc = wx.ClientDC(self)
|
|
text = wx.StaticText(
|
|
self,
|
|
size=dc.GetTextExtent("String of max length"),
|
|
style=wx.ST_NO_AUTORESIZE
|
|
)
|