[wxPython-users] large text gets truncated using textCtrl.WriteText()

Vlastimil Brom vlastimil.brom at gmail.com
Tue Mar 4 14:36:30 PST 2008


2008/3/4, Robin Dunn <robin at alldunn.com>:
>
> james pruett wrote:
> > Hi, I have a truncation problem using textCtrl()
> > [...]
> This does sound familiar, so I think it has been reported before, but I
> don't remember details.
> [...]
> --
> Robin Dunn
> Software Craftsman
> http://wxPython.org  Java give you jitters?  Relax with wxPython!


Hi,
This sounds similar to my question posted some time ago
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:msp:72452
(bugreport with some extra info is at:
https://sourceforge.net/tracker/?func=3Ddetail&aid=3D1886535&group_id=3D986=
3&atid=3D109863

but I have actualy problems with pasting larger text from clipboard into
TextCtrl (also after some repeated inserts the whole clipboard-text finally
could be inserted).

However, If I try the simple test script (posted in the above mentioned
thread), everything works ok, e.g.:

testStr =3D "\n".join(str(i).zfill(99) for i in xrange(100000))
testTxtCtrl.Clear(); testTxtCtrl.WriteText(testStr)

the text is inserted into the TextCtrl widget without problems (actually the
testStr is far longer, then I was able to paste throught clipboard)
(I use Python 2.5.2 and wxPython 2.8.7.1 on Win XPh/XPp SP2)

Greetings,
    Vlasta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200803=
04/38db9f94/attachment.htm


More information about the wxpython-users mailing list