From e29e1d20eeff0ec98d21089c2331c2405d9b1de5 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 14 Jun 2021 08:41:08 -0400 Subject: [PATCH] docstring update for Window.current_location - mention the titlebar and menubar can affect accuracy --- PySimpleGUI.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 7583a187..972d4e3a 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.44.0 Released 13-Jun-2021" +version = __version__ = "4.44.0.1 Unreleased\nWindow.current_location docstring update to indicate value my be off due to titlebar." __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -9335,7 +9335,10 @@ Normally a tuple, but can be a simplified-dual-color-string "foreground on backg def current_location(self): """ - Get the current location of the window's top left corner + Get the current location of the window's top left corner. + Note that this value may not take into account the titlebar and menubar. + These parts of a window are created by the OS. As a result, the value returned may be + off depending on if your window has a titlebar or menubar. :return: The x and y location in tuple form (x,y) :rtype: Tuple[(int), (int)]