added frame_on/frame_off methods
This commit is contained in:
@ -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