[wxPython-users] Re: text logging widget?
Barry Scott
barry at barrys-emacs.org
Mon Dec 11 13:50:17 PST 2006
On Dec 9, 2006, at 12:25, Grant Edwards wrote:
> On 2006-12-09, Barry Scott <barry at barrys-emacs.org> wrote:
>
>>> I did find "colourlog.py" at
>>> http://wiki.wxpython.org/index.cgi/StyledTextCtrl_Log_Window_Demo
>>> which uses a wx.StyledTextControl, but using scintilla to log
>>> messages seems like vast overkill. Even the StyledTextCtrl docs
>>> admit that "it's a complex control that requires a lot of study
>>> to use." I really don't have the time to devote to "a lot of
>>> study" so I can log some text messages.
>>
>> In pysvn WorkBench I log to a StyledTextCtrl. It works well
>> and I don't remember the control being hard to use or take a
>> long time to read up on. Having error messages stand out using
>> the styles is a huge UI advantage.
>
> There were two things that I needed to change right away: make
> the widget non-editable, and remove the gray bar on the left.
> It wasn't obvious how to do either (perhaps I'm just stupid).
The grey bar is the way that you select whole lines in STC.
I keep finding that if a text ctrl or STC is not editable ^C does not
work.
Barry
More information about the wxpython-users
mailing list