tkinter frames
Keith Murphy
kpmurphy at my-deja.com
Thu Jul 6 10:49:56 EDT 2000
can anyone tell me why this doesn't work?
from Tkinter import *
root = Tk()
myFrame = Frame(root, width=200, height=200, bg='red')
myFrame2 = Frame(root, width=200, height=200, bg='orange')
label1 = Label(myFrame, text='hi')
myFrame.grid(row=0, column=0)
myFrame2.grid(row=0, column=2)
root.mainloop()
...(in my mind)it should display two colored frames, one containing a
label.
thanks,
-->keith
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list