Can I create different row numbers inside two columns using tkinter? Can I create different row numbers inside two columns using tkinter? tkinter tkinter

Can I create different row numbers inside two columns using tkinter?


You can nest widget management tools by using the Frame widget.

root = tk.Tk()left_side = tk.Frame(root)right_side = tk.Frame(root)left_side.grid(row=0, column=0)right_side.grid(row=0, column=1)entrybox = tk.Entry(left_side, ...args...)listbox1 = tk.Entry(left_side, ditto)listbox2 = tk.Entry(left_side, etc)listbox3 = tk.Entry(left_side, yeah)entrybox.grid(row=0, column=0)listbox1.grid(row=2, column=0)listbox2.grid(row=3, column=0)listbox3.grid(row=4, column=0)spinbox = tk.Spinbox(right_side, . . . )< all those things >spinbox.grid(row=0, column=0)the_next_one.grid(row=1, column=0)

that's just an example, and I left a lot to be filled in, but I hope that shows you what I am talking about

You can also use columnspan and rowspan, take a good look at this page: https://effbot.org/tkinterbook/grid.htmYou could have that top listbox span 5 or 6 rows and put all the buttons on the right in those rows but in the right column.

Hope that helps, feel free to ask questions or for more examples!