Merge pull request #930 from MikeTheWatchGuy/Dev-latest

Maximize is also now disabled when minimize is disabled on a Window
This commit is contained in:
MikeTheWatchGuy 2018-12-14 22:49:54 -05:00 committed by GitHub
commit bb86374b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -5475,6 +5475,7 @@ def StartupTK(window):
if window.DisableMinimize: if window.DisableMinimize:
# flags |= ~Qt.WindowMinimizeButtonHint # flags |= ~Qt.WindowMinimizeButtonHint
window.QT_QMainWindow.setWindowFlags(window.QT_QMainWindow.windowFlags()&~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) # window.QTWindow.setAttribute(Qt.WA_TranslucentBackground)
# shadow = QtWidgets.QGraphicsDropShadowEffect() # shadow = QtWidgets.QGraphicsDropShadowEffect()
# shadow.setBlurRadius(9.0) # shadow.setBlurRadius(9.0)