Help on multithreading and Tkinter; Linux vs Windows

corrado corrado.clementi at ciaolab.com
Fri May 21 12:51:32 EDT 2004


Hello

I have an application running several thread to display some financial
data;
basically I have a thread displaying HTML tables by means of Tkhtml,
another implementing a scrolling ticker based on a Text widget with
embedded windows and a thread running the Tkinter mainloop plus
several other thread dealing with the scheduling of the contents and
the acquisition of data but not using graphic widgets.
I run the same code on Linux and Windows; I have no problems on Linux
while on Windows everything get stucked when I tried to scroll the
ticker, it looks like I'm blocked in  mywidget.xview(SCROLL,1,UNITS);
at this time the graphic of the application freezes while all the rest
goes on running.
I tried several other strategies, like having the ticker thread and
the table displaying thread sending event to the mainloop to perform
Tkinter methods call in callbacks instead of calling the methods
themselves, but nothing seems to change. If I run root.update() after
scrolling the ticker, I can see it moving a bit, but after some loops,
I get the same frozen status.

Is there anyone who can help me? I've already tried the
Tkinter-discuss mailing list but I got no answer.
I supposed Tkinter worked the same way under Windows and Linux but it
does not look like it's so; is there any paper explaining the
differences between the behaviour on the two operating systems? For
instance on Windows I also had problem with iconify and with the
button highlight, which is Windows standard whatever setting you try.

Any help is really appreciated.

Thanks in advance

Corrado Clementi



More information about the Python-list mailing list