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

Method geometry_settings

calculator-gui.py:391–404  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 =======

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected