how does tkinter grid know how many rows and columns there are code example Example: tkinter widget span multiple colums checkbutton.grid(columnspan=2, sticky=W)