logging.Handler not working with QThreads

Lukas Hetzenecker LuHe at gmx.at
Wed Feb 25 18:57:25 EST 2009


Hello,

I created a QTextEdit where I wanted to display log messages.
A logging.Handler should do this job.

It worked with one thread well, but when I start a QThread the text on all 
widgets is removed and I get many errors in my konsole:

X Error: RenderBadGlyphSet (invalid GlyphSet parameter) 177
  Extension:    152 (RENDER)
  Minor opcode: 25 (RenderCompositeGlyphs32)
  Resource id:  0x0
X Error: RenderBadGlyphSet (invalid GlyphSet parameter) 177
  Extension:    152 (RENDER)
  Minor opcode: 25 (RenderCompositeGlyphs32)
  Resource id:  0x0
X Error: RenderBadGlyphSet (invalid GlyphSet parameter) 177
  Extension:    152 (RENDER)
  Minor opcode: 25 (RenderCompositeGlyphs32)
  Resource id:  0x0

.. and so on

I attatched a small example to this mail.

Could anybody tell me what I'm doing wrong?
Thanks for you help,
Lukas


-------------- next part --------------
A non-text attachment was scrubbed...
Name: logging_error.py
Type: text/x-python
Size: 3262 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20090226/82e02135/attachment.py>


More information about the Python-list mailing list