[wxPython-users] Re: process stream CanRead() segfaults
Brendan Simon
Brendan at BrendanSimon.com
Mon Sep 4 22:32:31 PDT 2006
Well I don't know if it actually does return a wxString. Certainly the
wx docs say that it does but I'm sure that's referring to the C++
framework rather than the python port. All I know is that the exact
same command (ls -l /tmp) works perfectly using demo.py and does not
work in my code. The only difference I can see is that I set the
command directly with a python string in wxExecute, rather than the
return object from wxTextCtrl.
Brendan.
Chris Spencer wrote:
> If something in wxPython returns a wxString, then that is a bug.
> EVERYTHING that returns a string in wxPython should return a Python
> string. I would submit a bug report to Robin.
>
> Christoper L. Spencer
> CTO ROXX, LLC
> 4515 Leslie Ave.
> Cincinnati, OH
> 45242
> TEL: 513-545-7057
> EMAIL: chris at roxx.biz
>
> On Tue, 05 Sep 2006 08:47:37 +1000, Brendan Simon
> <Brendan at BrendanSimon.com> wrote:
>
>
>> As mentioned below, the command "bash -c 'for i in $(seq 10) ; do ls -l
>> /tmp ; sleep 1 ; done'" seems to work, HOWEVER it DOES segfault at the end.
>>
>> I'm wondering if it is some kind of string termination problem with
>> python strings versus wxString.
>>
>> The wxpython-demo works, but it uses a wxTextControl to return the
>> command, and the returned object is a wxString not a python string.
>>
>> How do I convert a python string into a wxString?
>> Does wxString exist in wxPython ???
>> I shouldn't need to use wxString, right??
>>
>> BTW, it segfaults on the following systems.
>> wxPython-2.6.3.2.1.5 on Debian Testing(Etch) using gtk2.
>> wxPython-2.4.3.1 on Debian Stable(Sarge) using gtk1.
>>
>> Brendan.
>>
More information about the wxpython-users
mailing list