[Tutor] Tkinter Grid Layout Problems

Johnston Jiaa oclbdk at gmail.com
Sun Nov 25 07:15:57 CET 2007

I'm trying to get the left part of a window to look like this:

I tried using sticky's, but nothing seems to work correctly.

This is my attempt, without the sticky's..
         self.lt_lbl = Label(frame, text="Left label")
         self.lt_lbl.grid(row=0, column=0)

         self.lt_add_btn = Button(frame, text="Left add button")
         self.lt_add_btn.grid(row=0, column=1)
         self.lt_rem_btn = Button(frame, text="Left remove button")
         self.lt_rem_btn.grid(row=0, column=2)

         self.lt_lstbx = Listbox(frame)
         self.lt_lstbx.grid(row=1, column=0)
         self.lt_scrlbr = Scrollbar(frame)
         self.lt_scrlbr.grid(row=1, column=1)

How do I get everything aligned properly?

Johnston Jiaa

More information about the Tutor mailing list