| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e97618b commit b15fc95
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -54,7 +54,7 @@ | |||
| 54 | 54 | ||
| 55 | 55 | """ | |
| 56 | 56 | ||
| 57 | - version = "6.3.11" | ||
| 57 | + version = "6.3.12" | ||
| 58 | 58 | ||
| 59 | 59 | ||
| 60 | 60 | ||
@@ -87,6 +87,8 @@ | |||
| 87 | 87 | every window is created. Rather than using Alpha to hide a window while it's being created, this version withdraws the window and uses a call I didn't | |
| 88 | 88 | know about to get the size of the window before it's fully created. master.winfo_reqwidth() master.winfo_reqheight(). Alpha was needed before so | |
| 89 | 89 | the window dimensions could be gathered to determine where to locate the window so it is centered on the screen. | |
| 90 | + 6.3.12 26-Aug-2026 Fix for bug in window location. Was using last window location from json file when auto_save_location=True creating Window rather than using the | ||
| 91 | + location set in the Window creation. | ||
| 90 | 92 | """ | |
| 91 | 93 | ||
| 92 | 94 | ||
@@ -10401,9 +10403,13 @@ def __init__(self, title, layout=None, default_element_size=None, | |||
| 10401 | 10403 | self.Title = str(title) | |
| 10402 | 10404 | self.Rows = [] # a list of ELEMENTS for this row | |
| 10403 | 10405 | self.DefaultElementSize = default_element_size if default_element_size is not None else DEFAULT_ELEMENT_SIZE | |
| 10404 | - self.DefaultButtonElementSize = default_button_element_size if default_button_element_size != ( | ||
| 10405 | - None, None) else DEFAULT_BUTTON_ELEMENT_SIZE | ||
| 10406 | - if DEFAULT_WINDOW_LOCATION != (None, None) and location == (None, None): | ||
| 10406 | + self.DefaultButtonElementSize = default_button_element_size if default_button_element_size != (None, None) else DEFAULT_BUTTON_ELEMENT_SIZE | ||
| 10407 | + | ||
| 10408 | + self._last_location = (None, None) # used by a property | ||
| 10409 | + self.auto_save_location = auto_save_location | ||
| 10410 | + if auto_save_location is True and location == (None, None): | ||
| 10411 | + self.Location = tuple(user_settings_get_entry('-LAST WINDOW LOCATION-'+title, self.Location)) | ||
| 10412 | + elif DEFAULT_WINDOW_LOCATION != (None, None) and location == (None, None): | ||
| 10407 | 10413 | self.Location = DEFAULT_WINDOW_LOCATION | |
| 10408 | 10414 | else: | |
| 10409 | 10415 | self.Location = location | |
@@ -10530,10 +10536,7 @@ def __init__(self, title, layout=None, default_element_size=None, | |||
| 10530 | 10536 | self._has_custom_titlebar = use_custom_titlebar | |
| 10531 | 10537 | self._mousex = self._mousey = 0 | |
| 10532 | 10538 | self._startx = self._starty = 0 | |
| 10533 | - self._last_location = (None, None) # used by a property | ||
| 10534 | - self.auto_save_location = auto_save_location | ||
| 10535 | - if auto_save_location is True: | ||
| 10536 | - self.Location = tuple(user_settings_get_entry('-LAST WINDOW LOCATION-'+title, self.Location)) | ||
| 10539 | + | ||
| 10537 | 10540 | self.scaling = scaling if scaling is not None else DEFAULT_SCALING | |
| 10538 | 10541 | ||
| 10539 | 10542 | if self.use_custom_titlebar: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ def readme(): | |||
| 11 | 11 | ||
| 12 | 12 | setuptools.setup( | |
| 13 | 13 | name="pysimplegui", | |
| 14 | - version="6.3.11", | ||
| 14 | + version="6.3.12", | ||
| 15 | 15 | author="PySimpleGUI", | |
| 16 | 16 | author_email="PySimpleGUI@PySimpleGUI.org", | |
| 17 | 17 | description="Python GUIs for Humans. Launched in 2018. NEW LGPL3 Version 6 released in 2026.", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments