Same as Misc.grid_size(): return a (columns, rows) tuple giving the size of the grid. size() is an alias of grid_size(), except on the Listbox widget, which provides its own size() method.
tkinter/Grid.size
Grid.size