I'm trying to make a scrollable grid table. I had a look at some answers and it seems the way is to make a Frame , then put a Canvas and a Scrollbar next to eachother and apply some commands for scrolling. I have this code here, but I can't figure out what is wrong with this. import tkinter as tk class Test: def __init__(self): self.root = tk.Tk() table_and_scrollbar_frame = tk.Frame(self.root) table_frame = tk.Canvas(table_and_scrollbar_frame) table_frame.grid(row=0, column=0) self.table_headers = ["header_1", "header_2", "header_3", "header_4"] for test_row in range(0,100): for header_to_create in self.table_headers: current_entry = tk.Entry(table_frame, width=25, justify='center') current_entry.insert(0, header_to_create + " " + str(test_row)) current_entry.configure(state='disable...
A site where you can share knowledge