[PyQt] logging.Handler not working with QThreads

Lukas Hetzenecker LuHe at gmx.at
Wed Feb 25 15:27:16 GMT 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: 3154 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090225/82e02135/logging_error.py


More information about the PyQt mailing list