[Tutor] width

linda.s samrobertsmith at gmail.com
Thu Nov 15 22:40:43 CET 2007


I wonder why the widths are different for the three labels?
Thanks,
Linda

from Tkinter import *

root = Tk()

w = Label(root, text="Red", bg="red", fg="white")
w.pack()
w = Label(root, text="Green", bg="green", fg="white")
w.pack()
w = Label(root, text="Blue", bg="blue", fg="white")
w.pack()

mainloop()


More information about the Tutor mailing list