added frame_on/frame_off methods

This commit is contained in:
2023-01-06 01:23:11 +01:00
parent 3d571f385e
commit 533eeb59a6

View File

@ -20,4 +20,11 @@ class MDISubPlot(QMdiSubWindow):
self.setWidget(plt)
def frame_on(self):
self.setWindowFlags(self.windowFlags() & ~Qt.FramelessWindowHint)
def frame_off(self):
self.setWindowFlags(self.windowFlags() | Qt.FramelessWindowHint)