MCPcopy Create free account
hub / github.com/geekcomputers/Python / geometry_settings

Method geometry_settings

encrypter-decrypter-gui.py:18–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
32class Notebook:

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected