[wxPython-users] limitation of the text pasted from the clipboard in wx.TextCtrl?

Robin Dunn robin at alldunn.com
Mon Feb 4 10:50:15 PST 2008


Vlastimil Brom wrote:

> E.g. the following test data can be used:
> 
> for i in xrange(1000): print str(i).zfill(99)
> 
> i.e. 1000 100-character lines.
> If I copy the resulting text to the clipboard and paste it repeatedly to 
> the TextCtrl widget, it gets inserted in the following chunks (shortcut 
> Ctrl+V as well as context menu act the same):
> 
> 326
> 657
> 991
> 999
> (zero-based line numbers of the last completely inserted line)
> After the complete text (lines 0-999) is once inserted, the next tries 
> are always ok.
> 
> Is there some known limitation here, or is there something I can use to 
> overcome it? (currently I am using stc for larger inputs or loading form 
> file).
> The other way, i.e. copying from the widget to some editor works fine.

That is really weird.  Please create a bug report for it with a category 
of "wxMSW specific"


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list