I have a gui window which I can resize. I want to set min resizing values (and max as well) so that my widgets would not be swallowed when making the window too small or app would not look ugly when resized too much.
How do I set min and max resize sizes for my main window?
When you say, “How do I set a window size for Windows” which windows are you referring? We can change the window size, by changing options in the properties of the application. Refer the steps mentioned below: Right click on any application shortcut and select Properties.
Don't worry—Windows 10 has you covered! Just follow the steps in this wikiHow to change your display size. Open Settings . To do this, click on the start button and choose the settings gear. [1] Click Ease of Access. [2] It is the tenth option on the list. Click Display. [3] It is the first item under Vision . Adjust the slider.
Open Settings . To do this, click on the start button and choose the settings gear. [6] Click Ease of Access. [7] It is the tenth option on the list. Click Display. [8] It is the first item under Vision . Click the dropdown under Make everything bigger. [9]
Right click on any application shortcut and select Properties. Click on Shortcut tab. Now, use the drop down beside Run and select the size from Normal window, Minimized and Maximized.
You can use the minsize
and maxsize
functions:
from Tkinter import *
root = Tk()
root.minsize(width=200, height=200)
root.maxsize(width=650, height=500)
root.mainloop()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With