On Feb 28, 2006, at 4:29 PM, Josiah Carlson wrote:
>
> Charles Hartman <charles.hartman conncoll.edu> wrote:
>>
>> I'm having a hard time tracking this one down.
I'm writing text, a
>> sentence at a time, to a StyledTextControl, always
at the end. It
>> works fine until . . . well, until what? When I add
"one too many
>> sentences" the STC goes entirely blank.
Adding more after that
>> doesn't make a difference. The data are still
there, according to my
>> debugger.
>>
>> "One too many sentences" *almost* means
"whatever sentence comes
>> after the one that pushes the output beyond 5100
chars in length" but
>> not quite; sometimes it can get up to 5140 chars.
But it's a pretty
>> narrow range in any case.
>>
>> Has anybody else seen this? Has anybody got a
suggestion about where
>> to look? My own code around the STC.AddText() call
looks OK . . .
>
> Is the text you are adding all on one line? Are there
any CR/LF
> characters in the added text? Are you using the ansi
or unicode
> version
> of wxPython?
No, no newline characters at all. Unicode version of
wxPython.
>> This is on Mac OS 10.4.5 (happens to be Intel),
with Python 2.4.1
>> (MacPython PPC) and wxPython 2.6.2.1.
>
> You are running MacPython PPC on an Intel OSX 10.4.5?
Are you sure?
Very sure. When I got the Intel iMac (a few days ago) I
tried to use
the ActiveState Python under the mistaken idea that it was a
Universal buiild, but it's i386-only, and since there's no
matching
version (in binary installer) of wxPython, I went back to
the PPC
MacPython. (The Universal version of MacPython is just
coming into
existence now; I haven't tried the test installer yet.) So
the PPC
versions of Python and wxPython are working perfectly
happily together.
Except for this. But I don't think this problem is related.
I'll try
to test on a PPC G4 machine for another datapoint.
Charles Hartman
> - Josiah
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribe lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help lists.wxwidgets.org
|