How to create a self resizing grid of buttons in tkinter?

前端 未结 4 720
后悔当初
后悔当初 2020-12-04 08:44

I am trying to create a grid of buttons(in order to achieve the clickable cell effect) with Tkinter.

My main problem is that I cannot make the grid and

4条回答
  •  醉梦人生
    2020-12-04 08:59

    To make the buttons expand when the window is maximized, try to modify the button.grid entry as follows:

    btn.grid(column=x, row=y, sticky=N+S+E+W)
    

提交回复
热议问题