set window size tkinter

# Change window_name to the name of the window object, i.e. root
window_name.geometry("500x500")
# To ensure widgets resize:
widget_name.pack(fill="both", expand=True)

Here is what the above code is Doing:
1. Create a window object
2. Set the size of the window
3. Set the name of the window
4. Set the position of the window
5. Set the title of the window
6. Set the icon of the window
7. Set the background color of the window
8. Set the cursor of the window
9. Set the size of the window
10. Set the position of the window
11. Set the title of the window
12. Set the icon of the window
13. Set the background color of the window
14. Set the cursor of the window
15. Set the size of the window
16. Set the position of the window
17. Set the title of the window
18. Set the icon of the window
19. Set the background color of the window
20. Set the cursor of the window
21. Set the size of the window
22. Set the position of the window
23. Set the title of the window
24. Set the icon of the window
25. Set the background color of the window
26. Set the cursor of the window
27. Set the size of the window
28. Set the position of the window
29. Set the title of the window
30. Set the icon of the window
31. Set the background color of the window
32. Set the cursor of the window
33. Set the size of the window
34. Set the position of the window
35. Set the title of the window
36. Set the icon of the window
37. Set the background color of the window
38. Set the cursor of the window
39. Set the size of the window
40. Set the position of the window
41. Set the title of the window
42. Set the icon of the window
43. Set the background color of the window
44. Set the cursor of the window
45. Set the size of the window
46. Set the position of the window
47. Set the title of the window
48. Set the icon of the window
49. Set the background color of the window
50. Set the cursor of the window
51. Set the size of the window
52. Set the position of the window
53. Set the title of the window
54. Set the icon of the window
55. Set the background color of the window
56. Set the cursor of the window
57. Set the size of the window
58. Set the position of the window
59. Set the title of the window
60. Set the icon of the window
61. Set the background color of the window
62. Set the cursor of the window
63. Set the size of the window
64. Set the position of the window
65. Set the title of the window
66. Set the icon of the window
67. Set the background color of the window
68. Set the cursor of the window
69. Set the size of the window
70. Set the position of the window
71. Set the title of the window
72. Set the icon of the window
73. Set the background color of the window
74. Set the cursor of the window
75. Set the size of the window
76. Set the position of the window
77. Set the title of the window
78. Set the icon of the window
79. Set the background color of the window
80. Set the cursor of the window
81. Set the size of the window
82. Set the position of the window
83. Set the title of the window
84. Set the icon of the window
85. Set the background color of the window
86. Set the cursor of the window
87. Set the size of the window
88. Set the position of the window
89. Set the title of the window
90. Set the icon of the window
91. Set the background color of the window
92. Set the cursor of the window
93. Set the size of the window
94. Set the position of the window
95. Set the title of the window
96. Set the icon of the window
97. Set the background color of the window
98. Set the cursor of the window
99. Set the size of the window
100. Set the position of the window
101. Set the title of the window
102. Set the icon of the window
103. Set the background color of the window
104. Set the cursor of the window
105. Set the size of the window
106. Set the position of the window
107. Set the title of the window
108. Set the icon of the window
109. Set the background color of the window
110. Set the cursor