I’m creating my text control like this:
wx.TextCtrl(
panel, style=wx.NO_BORDER | wx.TE_MULTILINE | wx.TE_DONTWRAP | wx.HSCROLL
)
I’ve tried with all combinations of wx.TE_DONTWRAP and wx.HSCROLL but my text input still wraps all text. I want the text control to never wrap any lines and instead add a horizontal scrollbar. Here is the full code, the interesting lines are 171:187.
I’m using wxPython 2.9.4.0 on OSX 10.8.1 (Mountain Lion).
Screenshot of result:

Turns out this just doesn’t work on OSX with Python 2.9. I switched to using a StyledTextCtrl instead which works excellently.