MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / move

Method move

PySimpleGUI/PySimpleGUI.py:11228–11241  ·  view source on GitHub ↗

Move the upper left corner of this window to the x,y coordinates provided :param x: x coordinate in pixels :type x: (int) :param y: y coordinate in pixels :type y: (int)

(self, x, y)

Source from the content-addressed store, hash-verified

11226 return screen_width, screen_height
11227
11228 def move(self, x, y):
11229 """
11230 Move the upper left corner of this window to the x,y coordinates provided
11231 :param x: x coordinate in pixels
11232 :type x: (int)
11233 :param y: y coordinate in pixels
11234 :type y: (int)
11235 """
11236 try:
11237 self.TKroot.geometry("+%s+%s" % (x, y))
11238 self.config_last_location = (int(x), (int(y)))
11239
11240 except:
11241 pass
11242
11243 def move_to_center(self):
11244 """

Callers 4

guiFunction · 0.95
mainFunction · 0.95
move_to_centerMethod · 0.95
_move_callbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected