Return the height of the virtual root window associated with the widget if there is one; otherwise return the height of the widget’s screen.
tkinter/Misc.winfo_vrootheight
Misc.winfo_vrootheight