added frame_on/frame_off methods
This commit is contained in:
1 parent
3d571f385e
commit
533eeb59a6
1 file changed
+7
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user