Merge pull request #886 from MikeTheWatchGuy/Dev-latest

Resizable parameter on Windows now works. Defaults to resizable
This commit is contained in:
MikeTheWatchGuy 2018-12-09 13:48:13 -05:00 committed by GitHub
commit 3825a4860f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -2980,7 +2980,7 @@ class Window:
progress_bar_color=(None, None), background_color=None, border_depth=None, auto_close=False,
auto_close_duration=DEFAULT_AUTOCLOSE_TIME, icon=DEFAULT_WINDOW_ICON, force_toplevel=False,
alpha_channel=1, return_keyboard_events=False, use_default_focus=True, text_justification=None,
no_titlebar=False, grab_anywhere=False, keep_on_top=False, resizable=False, disable_close=False, background_image=None):
no_titlebar=False, grab_anywhere=False, keep_on_top=False, resizable=True, disable_close=False, background_image=None):
'''
:param title:
@ -5433,8 +5433,6 @@ def StartupTK(window):
if (window.GrabAnywhere is not False and not (
window.NonBlocking and window.GrabAnywhere is not True)):
pass
if not window.Resizable:
pass
window.QFormLayout = QFormLayout()
window.QT_Box_Layout = QVBoxLayout()
@ -5472,6 +5470,11 @@ def StartupTK(window):
if window._Size != (None, None):
window.QT_QMainWindow.resize(window._Size[0], window._Size[1])
if not window.Resizable:
window.QT_QMainWindow.setFixedSize(*size)
timer = None
if window.AutoClose:
timer = start_window_autoclose_timer(window, window.AutoCloseDuration*1000)