EVT_UPDATE_UI problem

I am using EVT_UPDATE_UI to update various controls with
information being produced by a seperate thread that is
reading a serial port.

On my Linux and Windows2K machines this works fine. It
also seems to work fine on another W2K machine. Of course
it does not work on the Win98 and W2K machines of the people
who need to use the program. On their machines, the controls
are only updated when the mouse moves. All the machines are
running the same versions of Python (2.2.3) and wxPython (2.4.07).

Any one have an idea of what might be different on the machines?
Any ideas on a way to fix it?

John Conner, NJ0C

John Conner wrote:

I am using EVT_UPDATE_UI to update various controls with
information being produced by a seperate thread that is
reading a serial port.

On my Linux and Windows2K machines this works fine. It also seems to work fine on another W2K machine. Of course
it does not work on the Win98 and W2K machines of the people
who need to use the program. On their machines, the controls
are only updated when the mouse moves. All the machines are
running the same versions of Python (2.2.3) and wxPython (2.4.07).

Update events are generated at a few specific times (before menu's are shown for example) and also during idle time so one way to ensure that your items are updated is to call wxWakeUpIdle() when your other thread changes things. (It is safe to call it from non-gui threads.)

Any one have an idea of what might be different on the machines?

Something on your machine is probably periodically sending messages to all windows and so the idle events are happening more often. (Idle events are sent whenever the message queue *becomes* empty.)

ยทยทยท

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