Merge pull request #933 from MikeTheWatchGuy/Dev-latest
Added close button hint setting if disable close set
This commit is contained in:
commit
1e1926cdc0
|
@ -5475,6 +5475,10 @@ def StartupTK(window):
|
|||
if window.DisableMinimize:
|
||||
window.QT_QMainWindow.setWindowFlags(window.QT_QMainWindow.windowFlags()&~Qt.WindowMinimizeButtonHint)
|
||||
window.QT_QMainWindow.setWindowFlags(window.QT_QMainWindow.windowFlags()&~Qt.WindowMaximizeButtonHint)
|
||||
|
||||
if window.DisableClose:
|
||||
window.QT_QMainWindow.setWindowFlags(window.QT_QMainWindow.windowFlags()&~Qt.WindowCloseButtonHint)
|
||||
|
||||
# window.QTWindow.setAttribute(Qt.WA_TranslucentBackground)
|
||||
# shadow = QtWidgets.QGraphicsDropShadowEffect()
|
||||
# shadow.setBlurRadius(9.0)
|
||||
|
@ -5785,12 +5789,7 @@ class DebugWin():
|
|||
self.output_element.Update(outstring, append=True)
|
||||
else:
|
||||
print(*args, sep=sepchar, end=endchar)
|
||||
# TODO
|
||||
# Add extra check to see if the window was closed... if closed by X sometimes am not told
|
||||
# try:
|
||||
# state = self.window.TKroot.state()
|
||||
# except:
|
||||
# self.Close()
|
||||
|
||||
|
||||
def Close(self):
|
||||
self.window.Close()
|
||||
|
|
Loading…
Reference in New Issue