[wxPython-users] text logging widget?
Barry Scott
barry at barrys-emacs.org
Sat Dec 9 03:25:55 PST 2006
On Dec 8, 2006, at 20:06, Grant Edwards wrote:
> Can somebody point me to a widget for logging text messages
> (with scrolling)?
>
> I know I've seen this request before, but I can't seem to come
> up with the right search criteria to find the answer.
>
> 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.
I know what the type of the message is as I've hooked into
the python logging module.
The code is around line 1030 in
http://pysvn.tigris.org/svn/pysvn/trunk/pysvn/WorkBench/Source/
wb_frame.py
username "guest" password ""
Barry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20061209/b4bed539/attachment.htm
More information about the wxpython-users
mailing list