Red Hat Bugzilla – Bug 26030
Last modified: 2007-04-18 12:31:10 EDT
I don't know what the problem is, but the following very basic threaded
Tkinter program doesn't work under Fisher but works fine under RedHat 6.2.
This program should pop up a little window and count inside that window.
I am attaching this script as a file as well as including it here in the
def __init__(self, master):
self.__master = master
frame = Tkinter.Frame(master).pack()
self.__v = Tkinter.StringVar()
self.__th = threading.Thread(target=self.__count)
def __drawText(self, text):
i = 0
i = i + 1
root = Tkinter.Tk()
Created attachment 8979 [details]
We (Red Hat) should really try to fix this before next release.
This is actually a problem with the tcltk packages we shipped. Since it has been
downrev'ed it works.
I am resolving this as "rawhide" since the tcltk packages there fix the problem now.
Can you tell me which packages to grab from rawhide? I checked
ftp://ftp.redhat.com/rawhide/i386/RedHat/RPMS and all the tk* and tcl* packages
there are the same versions that I have installed in Fisher. I'd like to
download and test with these since I have other python/tkinter programs that
crash under Fisher and I'd like to make sure that they all work with this fix.
(They all do what my example program does; i.e., update a tk variable from a
second thread, but you never know when more than one factor may be involved...)
On my system:
rpm -qa | egrep '(tcl|tk)'
Just confirming that this does work in Wolverine. Thanks.