grid

Keith Murphy kpmurphy at my-deja.com
Mon Jul 17 16:01:30 EDT 2000


does this look alright?

# embed.py
from Tkinter import *

root = Tk()

left = Frame(root, bg='red')
right = Frame(root, bg='orange')

button1 = Button(left, text='hi')
button2 = Button(right, text='yo')

entry1 = Entry(left)
entry2 = Entry(right)

label1 = Label(left, text='this is schweet')

left.grid(row=0, column=0, ipadx=10, ipady=10)
right.grid(row=0, column=1, ipadx=10, ipady=10)
button1.grid(row=0, column=0)
button2.grid(row=0, column=0)
entry1.grid(row=0, column=1)
entry2.grid(row=0, column=1)
label1.grid(row=1, column=0, columnspan=2)


mainloop()
# end embed.py


thanks,
-->keith

In article <8kvkvt$68h$1 at nnrp1.deja.com>,
  Keith Murphy <kpmurphy at my-deja.com> wrote:
> can you embed grids?  ...what i'd like to do is grid within several
> frames, and then grid the frames together.  sort of like html
tables...
> i hate pack.
>
> -->keith
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list