| 16 | self.geometry_settings() |
| 17 | |
| 18 | def geometry_settings(self): |
| 19 | _com_scr_w = self.winfo_screenwidth() |
| 20 | _com_scr_h = self.winfo_screenheight() |
| 21 | _my_w = 300 |
| 22 | _my_h = 450 |
| 23 | # ----- Now Getting X and Y Coordinates |
| 24 | _x = int(_com_scr_w / 2 - _my_w / 2) |
| 25 | _y = int(_com_scr_h / 2 - _my_h / 2) |
| 26 | _geo_string = str(_my_w) + "x" + str(_my_h) + "+" + str(_x) + "+" + str(_y) |
| 27 | self.geometry(_geo_string) |
| 28 | # ----- Geometry Setting Completed Now Disabling Resize Screen Button ----- |
| 29 | self.resizable(width=False, height=False) |
| 30 | |
| 31 | |
| 32 | class Notebook: |