External thread in GUI

Hi,

We are working with an application in wxPython where we use an external thread to send data to our GUI.
When the data on the extrernal thread is comming often, the GUI doesn't update correct.
because of this we use an event(wxPostEvent) to send data from external thread. This works, but the GUI updates very slow.
We have tried to send fewer events with more (buffered) data, but the GUI acts the same.

Without the use of events it updates fast, but crashes at high incomming data load.

Is there any way to do this faster or speed up the event?

Stefan Holmgren
Electrical Design / CAD Operator ________________________________

ACCALON AB
Box 135
590 10 Boxholm, Sweden

Phone: +46 (0) 142 55500
Direct: +46 (0) 142 55642
Fax: +46 (0) 142 55555

···

____________________________________________________
CONFIDENTIALITY AND DISCLAIMER

This e-mail and its attachments are intended for the above named
addressee(s) only and may be confidential. If the mail has come to you in error please
reply to this e-mail and highlight the error. In addition, we kindly ask
you to destroy the Mail.

Please be aware that we disclaim all liability for the integrity or for
the accuracy of this Mail, as transmissions via Internet are not error
free communications medium. We advise you that you understand and observe
this lack of security when e-mailing us. We furthermore advise you
that in keeping with a good computing practice you should ensure that this
Mail is virus free. We disclaim all liability for the virus free
transmission of the same. Please do take notice that with respect to
essential messages we expect you to confirm your message in writing due to
the possibility of manipulation of transmissions via Internet.

You can try using the Queue module instead and calling wxWakeUpIdle() from
your thread and then handling the Queue processing in an idle event handler.

ka

···

-----Original Message-----
From: Holmgren Stefan [mailto:stefan.holmgren@accalon.se]
Sent: Sunday, January 12, 2003 1:14 PM
To: wxpython-users@lists.wxwindows.org
Subject: [wxPython-users] External thread in GUI

Hi,

We are working with an application in wxPython where we use an
external thread to send data to our GUI.
When the data on the extrernal thread is comming often, the GUI
doesn't update correct.
because of this we use an event(wxPostEvent) to send data from
external thread. This works, but the GUI updates very slow.
We have tried to send fewer events with more (buffered) data, but
the GUI acts the same.

Without the use of events it updates fast, but crashes at high
incomming data load.

Is there any way to do this faster or speed up the event?

Stefan Holmgren
Electrical Design / CAD Operator ________________________________

ACCALON AB
Box 135
590 10 Boxholm, Sweden

Phone: +46 (0) 142 55500
Direct: +46 (0) 142 55642
Fax: +46 (0) 142 55555
____________________________________________________
CONFIDENTIALITY AND DISCLAIMER

This e-mail and its attachments are intended for the above named
addressee(s) only and may be confidential. If the mail has come
to you in error please
reply to this e-mail and highlight the error. In addition, we kindly ask
you to destroy the Mail.

Please be aware that we disclaim all liability for the integrity or for
the accuracy of this Mail, as transmissions via Internet are not error
free communications medium. We advise you that you understand and observe
this lack of security when e-mailing us. We furthermore advise you
that in keeping with a good computing practice you should ensure that this
Mail is virus free. We disclaim all liability for the virus free
transmission of the same. Please do take notice that with respect to
essential messages we expect you to confirm your message in writing due to
the possibility of manipulation of transmissions via Internet.

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org