This method is used to set the maximum size of the root window (maximum size a window can be expanded). User will still be able to shrink the size of the window to the minimum possible.
Here, height and width are in pixels.
Initial size of the window (maximum size of the window is not set)
Expanded size of the window (this window can be expanded til the size of the screen because size is not fixed).
Code #2: Fixing maximum size of the root window
Maximum expanded size of the window
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.