[pygtk] Log window
Neil Dugan
pygtk at butterflystitches.com.au
Wed Sep 24 10:13:51 WST 2008
Frédéric wrote:
>
> Le 17/9/2008, "Frédéric" <frederic.mantegazza at gbiloba.org> a écrit:
>
>> My app heavily uses the logging module to log a lot of things. As this
>> app mainly runs on a Nokia Internet Tablet, I don't want to log in a
>> file. I would prefer to log in a special object, and be able to
>> show/hide the logs in a window.
>
> Ok, I finally made something running, using
> ScrolledWindow/TextView/TextBuffer...
>
> I added colors for each level, but I can't set a global 'black'
> background to the TextBuffer; only to the text I write. Is there a way
> to do that?
>
> Thanks,
>
> --
> Frédéric
See http://faq.pygtk.org/index.py?req=show&file=faq04.016.htp
Basically add the ScrolledWindow to an EventBox and use something like
eventbox.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse("black"))
Regards Neil.
More information about the pygtk
mailing list