I want to print text on a window such that the text is justified (like in MS-Word). when I input a string to wx.StaticText(panel, label=txt), it completely ignores duplicate spaces and replaces them with one space for each.
How to prevent wx.StaticText
from modifying the input text? How can I get justified text using wx.StaticText
? is there a way to override this behavior?
p.s. I am aware that I can draw directly on a panel using wx.PaintDC
‘s methods, but it is tedious.
Here is a screenshot of the input string and what I get in the window: