From a6d272d447210d4f9502b1a81936960132a269e0 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Fri, 14 Dec 2018 22:49:19 -0500 Subject: [PATCH] Maximize is also now disabled when minimize is disabled on a Window --- PySimpleGUIQt/PySimpleGUIQt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PySimpleGUIQt/PySimpleGUIQt.py b/PySimpleGUIQt/PySimpleGUIQt.py index 2cfefc39..cef8f453 100644 --- a/PySimpleGUIQt/PySimpleGUIQt.py +++ b/PySimpleGUIQt/PySimpleGUIQt.py @@ -5475,6 +5475,7 @@ def StartupTK(window): if window.DisableMinimize: # flags |= ~Qt.WindowMinimizeButtonHint window.QT_QMainWindow.setWindowFlags(window.QT_QMainWindow.windowFlags()&~Qt.WindowMinimizeButtonHint) + window.QT_QMainWindow.setWindowFlags(window.QT_QMainWindow.windowFlags()&~Qt.WindowMaximizeButtonHint) # window.QTWindow.setAttribute(Qt.WA_TranslucentBackground) # shadow = QtWidgets.QGraphicsDropShadowEffect() # shadow.setBlurRadius(9.0)