79310291

Date: 2024-12-26 19:36:27
Score: 0.5
Natty:
Report link

wx.StaticText does not change the label string, but a monospaced font should be used for the lines of the paragraph to maintain vertical alignment. like so:

font = wx.Font(pointSize=15, family=wx.FONTFAMILY_MODERN,\
               style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_NORMAL,\
               faceName="Courier New")
staticText = wx.StaticText(parentPanel, label=text, style=wx.ALIGN_LEFT)
staticText.SetFont(font)
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: topcat