468,785 Members | 1,668 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,785 developers. It's quick & easy.

wxTextCtrl - copy and paste 65,000 characters of text into it only seems to hold 30,003

I have a wxTextCtrl:

wx.TextCtrl(self.myPanel, -1, "", style=wx.TE_MULTILINE)

I take a set of text (65,000 characters), and paste it into the text
control. all looks well. Then when I click a button I print out the
entered text and the length of that text. Here is what I am seeing...

1. Paste in text (65,000 characters)
2. Click button
3. Output on screen shows that the message length (i.e. len(msg)) is
30003 (strange since it should be 65000)
4. Select all text in the text control and hit delete. The text
control should now be empty.
5. Paste in text (65,000 characters)
6. Click Button
7. Output on screen shows that the message length (i.e. len(msg)) is
65000 (as expected).

Any idea why the first time it gives me 30003, but on subsequent
attempts I get 65000?

Thanks

Mar 15 '07 #1
0 1519

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by fowlertrainer | last post: by
3 posts views Thread by hellprout | last post: by
reply views Thread by austin | last post: by
4 posts views Thread by Clans Of Intrigue | last post: by
6 posts views Thread by XmlAdoNewbie | last post: by
3 posts views Thread by Rachel Suddeth | last post: by
2 posts views Thread by Keith | last post: by
6 posts views Thread by Ben R. | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.