[wxPython-users] wx.TextCtrl maximal line length
Josiah Carlson
jcarlson at uci.edu
Fri Aug 11 18:01:12 PDT 2006
stefaan <stefaan.himpe at gmail.com> wrote:
>
> Hello list,
>
> I seem to have hit a limit in the wx.TextCtrl, created with
> wx.TE_MULTILINE and wx.HSCROLL, when displaying a long line of text.
> (long in my case meaning > 12000 characters)
> The output is corrupted, as if two lines of text were printed on top of each
> other. The control works perfectly for short lines of text.
>
> In fact I want to display two such lines, neatly aligned under each other,
> and with differences between them being colored.
Are you sure you are going to need to handle lines of >12000 characters?
Seems a bit overkill for line diffs.
> Is this a python specific limitation, or a general wxwidgets limitation?
> Any other widgets I could use to accomplish my goal?
You may or may not have better luck using a wx.ScrolledPanel and
wx.lib.fancytext .
- Josiah
More information about the wxpython-users
mailing list