[Tkinter-discuss] Tkinter vs Tk strangness

Michael Lange klappnase at web.de
Mon Oct 18 20:37:42 CEST 2010


Hi Daniel,

Thus spoketh Daniel.Schep at srnl.doe.gov 
unto us on Mon, 18 Oct 2010 10:39:58 -0400:

(...)
> 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

Have you tried to run the tcl example with the Tcl/Tk version shipped
with Python? My first guess would be, that it is a problem with this Tk
version and has nothing to do with Python.

Regards
Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Beam me up, Scotty, there's no intelligent life down here!


More information about the Tkinter-discuss mailing list