wxCallAfter hangs

Hi!

I am not sure if this is a wxCallAfter bug or if it is a wxTextCtrl bug.
Anyhow, here it goes; I have a text chat and everytime somebody writes a
message the OutputText mathod is called. If I send messages fast, the OutputText
method hangs on the wxCallAfter(self.TextOutput.AppendText, message) line.
This does not happen on windows, just linux.

Parts of code:

···

-------------

self.TextOutput = wxTextCtrl(self, self.textOutputId, "", style=
wxTE_MULTILINE|wxTE_READONLY|wxTE_AUTO_URL|wxTE_RICH)

def OutputText(self, message):
        wxCallAfter(self.TextOutput.AppendText, message)

-------------

Thanks,

Susanne

Susanne Lefvert wrote:

Hi!

I am not sure if this is a wxCallAfter bug or if it is a wxTextCtrl bug. Anyhow, here it goes; I have a text chat and everytime somebody writes a message the OutputText mathod is called. If I send messages fast, the OutputText method hangs on the wxCallAfter(self.TextOutput.AppendText, message) line. This does not happen on windows, just linux.

Parts of code:
-------------

self.TextOutput = wxTextCtrl(self, self.textOutputId, "", style= wxTE_MULTILINE|wxTE_READONLY|wxTE_AUTO_URL|wxTE_RICH)

def OutputText(self, message):
        wxCallAfter(self.TextOutput.AppendText, message)

Please create a small standalone sample that shows this problem.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!