how to find the width and height of the window in tkinter code example Example: get size of window tkinter # Where w is a widget: w.winfo_height() w.winfo_width()