Python tkinter use canvas to create dynamically window with scroll bar
问题 My objective is to solve the problem of the grid exceeding the window(shown as figure.1) enter image description here My program function is creating a grid that number of columns defined by user. I tried using canvas to solve this problem, but it still doesn't work successfully. It doesn't show the full grid in the canvas.(shown as figure.2) enter image description here Below is my code, could you please help solve the problems or give me some advice. Thanks a lot. Code: import tkinter as tk