Sorry, I thought you meant total text length. There probably isn't anything that can be done to make the native text widgets allow larger line lengths. If all you need is the ability to display the text then you can easily create a custom widget that allows longer lines, although you may still run into issues with a limited range supported by the scrollbars. On the other hand, I know I personally hate reading text with lines longer than about 200 characters, so you might want to think about some other way to display the data that will make your users happier.
···
On 5/29/12 2:20 PM, Martin Manns wrote:
On Tue, 29 May 2012 10:43:06 -0700 > Robin Dunn<robin@alldunn.com> wrote:
On 5/28/12 1:17 PM, Martin Manns wrote:
2) Is there a text entry widget that supports long lines (>64k)?
A wx.TextCtrl with one of the wx.TE_RICH styles.
That does not work here.
I have tried:
style=wx.TE_PROCESS_ENTER|wx.TE_RICH
and the line is truncated at 65534 characters.
I am working with Debian unstable:
wxPython 2.8.12.1
(wxGTK, unicode, gtk2, wx-assertions-off, SWIG-1.3.29)
Running on Python 2.7.3rc2
I am using the Textctrl as an Editor in a wx.Grid. When cell editing is
started, the wx.TextCtrl automatically truncates the text. Therefore, I
would have to pre- and postprocess the code before and after editing.
I would prefer a widget that can be used as editor for arbitrary
cell content lengths in a wx.Grid. Better usability than a TextCtrl
of course would be nice.
Do you have an idea what to use?
Regards
Martin
···
On Fri, 01 Jun 2012 10:30:51 -0700 Robin Dunn <robin@alldunn.com> wrote:
Sorry, I thought you meant total text length. There probably isn't
anything that can be done to make the native text widgets allow
larger line lengths. If all you need is the ability to display the
text then you can easily create a custom widget that allows longer
lines, although you may still run into issues with a limited range
supported by the scrollbars. On the other hand, I know I personally
hate reading text with lines longer than about 200 characters, so you
might want to think about some other way to display the data that
will make your users happier.