MCPcopy Index your code
hub / github.com/python/cpython / get_geometry

Method get_geometry

Lib/idlelib/editor.py:1067–1071  ·  view source on GitHub ↗

Return (width, height, x, y)

(self)

Source from the content-addressed store, hash-verified

1065 return int(float(text.index(mark)))
1066
1067 def get_geometry(self):
1068 "Return (width, height, x, y)"
1069 geom = self.top.wm_geometry()
1070 m = re.match(r"(\d+)x(\d+)\+(-?\d+)\+(-?\d+)", geom)
1071 return list(map(int, m.groups()))
1072
1073 def close_event(self, event):
1074 self.close()

Callers

nothing calls this directly

Calls 4

listClass · 0.85
wm_geometryMethod · 0.80
matchMethod · 0.45
groupsMethod · 0.45

Tested by

no test coverage detected