how to know client window width tkinter code example
Example 1: get size of window tkinter
# Where w is a widget:
w.winfo_height()
w.winfo_width()
Example 2: python tkinter window size
#import statement
from tkinter import *
#create GUI Tk() variable
gui = Tk()
#set window size
gui.geometry("widthxheight")