minsize() method is used to set the minimum size of the Tkinter window. Using this method user can set window’s initialized size to its minimum size, and still be able to maximize and scale the window larger.
Here, height and width are in pixels.
Code #1: Root window without minimum size that means you can shrink window as much you want.
Initial root window without alteration in size
Root window after shrunken down, see the window is completely shrunken because it has no minimum geometry.
Code #2: Root window with minimum size.
Expanded window (we can expand window as much as we want because we haven’t set the maximum size of the window).
Window shrunken to it’s minimum size (one cannot shrunk it any further).
- Python | after method in Tkinter
- Python | pack() method in Tkinter
- Python | geometry method in Tkinter
- destroy() method in Tkinter | Python
- Python | place() method in Tkinter
- resizable() method in Tkinter | Python
- maxsize() method in Tkinter | Python
- Python | grid() method in Tkinter
- Place_forget() method using Tkinter in Python
- iconphoto() method in Tkinter | Python
- Python Tkinter | grid_location() and grid_size() method
- Python | forget_pack() and forget_grid() method in Tkinter
- Python Tkinter | Moving objects using Canvas.move() method
- Python GUI - tkinter
- RadioButton in Tkinter | Python
- Python Tkinter - Label
- Python Tkinter - Message
- Different messages in Tkinter | Python
- Python Tkinter Tutorial
- Python | GUI Calendar using Tkinter
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : nidhi_biet