| 389 | # ----------------------------- |
| 390 | |
| 391 | def geometry_settings(self): |
| 392 | _com_width = self.winfo_screenwidth() |
| 393 | _com_height = self.winfo_screenheight() |
| 394 | _my_width = 360 |
| 395 | _my_height = 350 |
| 396 | _x = int(_com_width / 2 - _my_width / 2) |
| 397 | _y = int(_com_height / 2 - _my_height / 2) |
| 398 | geo_string = ( |
| 399 | str(_my_width) + "x" + str(_my_height) + "+" + str(_x) + "+" + str(_y) |
| 400 | ) |
| 401 | # ----- Setting Now ----- |
| 402 | self.geometry(geo_string) |
| 403 | self.resizable(width=False, height=False) |
| 404 | # ----------------------- |
| 405 | |
| 406 | |
| 407 | # =================== Running The Application ======= |