tkinter print window size code example
Example 1: get size of window tkinter
# Where w is a widget:
w.winfo_height()
w.winfo_width()
Example 2: python tkinter define window size
window = Tk()
#set window size
window.geometry("widthxheight")
# Where w is a widget:
w.winfo_height()
w.winfo_width()
window = Tk()
#set window size
window.geometry("widthxheight")