Hello, from linux I have created an interactive telnet session with a chess server.
With a combination of the threading, pexpect and Queue modules I put all recieved data into a queue.
The only way I can think of getting the data from the queue to a
wxtextcontrol is to have a wx.timer (set to a short interval) keep inspecting the queue.
This method seems to work OK, but I am wondering if there is a 'better' method than using a timer.
If wx.timer is the only method, if I use an interval of 1 will the timer just run as fast as possible or should I try to find an exact value (eg 100) ?
With a combination of the threading, pexpect and Queue modules I put all recieved data into a queue.
The only way I can think of getting the data from the queue to a
wxtextcontrol is to have a wx.timer (set to a short interval) keep inspecting the queue.
This method seems to work OK, but I am wondering if there is a 'better' method than using a timer.
If wx.timer is the only method, if I use an interval of 1 will the timer just run as fast as possible or should I try to find an exact value (eg 100) ?
Comment