Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/wx.ClientDC.1.py
2020-07-07 16:03:56 -07:00

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
)