On Tue, 2009-08-25 at 10:27 +0200, Mario Frasca wrote:
> Package: libwxgtk2.6-0
> Version: 2.6.3.2.2-3
> Severity: grave
> Justification: renders package unusable
>
> using wxpython, I am writing a very simple GUI around a command-line
> program that produces logging. I have written a simple handler class,
> derived from logging.handler and owning a TextCtrl. this is its 'emit'
> method:
>
> def emit(self, record):
> if record.levelno >= logging.WARNING:
> styleForLevel = wx.TextAttr("red")
> elif record.levelno >= logging.INFO:
> styleForLevel = wx.TextAttr("black")
> else:
> styleForLevel = wx.TextAttr("grey")
> self.textCtrl.SetDefaultStyle(styleForLevel)
>
> self.textCtrl.AppendText(self.format(record))
> self.textCtrl.AppendText('\n')
>
> the original command-line main program is running in its own thread.
[...]Does this function run in a different thread from the other GUI code? Most GUI frameworks do not support access to a single widget from multiple threads. Ben. -- Ben Hutchings Quantity is no substitute for quality, but it's the only one we've got.
signature.asc
Description: This is a digitally signed message part

