1. Let's fill in the foundation first, and a window with default size will appear at runtime.
2. Now let's modify this default window by adding window.geometry('600x600') after window.title ("test window"), indicating that I want to set the default window to 600x600.
3. It should be noted that 600x600 is lowercase letter x, not * on the numeric keypad.
4. In addition,' 600x600' needs to be enclosed in quotation marks, which can be' or', but it must be.
5. After the default size, we can add location information, such as windows. Geometry ('600x600+700+ 100'), which will appear in the middle of the display, depending on your resolution.
6. We can also control the maximum and minimum sizes, namely window.minsize('400x400') and window. maxsize (' 1000x 1000 ')。