Hello all. I've been working on a converting a program from Tcl to Python 
for maintainability reasons and ran into a very strange problem (on 
Windows XP, using classic theme, if that's relevant). I haven't been able 
to find it documented any where.

Essentially there is a permanent 'shadow' underneath disabled button text 
in Tkinter that is not permanent in Tk.

A set of codes that demonstrates this difference is:

Tcl:
button .b -text weird -state disabled -font "system 20" -bg blue2
pack .b

Python:
from Tkinter import *
r = Tk()
b = Button(r, text='weird', state=DISABLED, font="system 20", bg='blue2')
b.pack()


Here is a set of images that demonstrates the problem on my machine, with 
Python 2.5.6 from Python.org (which uses Tk 8.5.2.2) and Tcl 8.5.9 from 
ActiveState.

http://imgur.com/a/hzAJn/tkinter_vs_tk_weirdness

Thanks
- Daniel
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to