Beispiel #1
0
 def createMdiChild(self, signals):
     sub_window = QtWidgets.QMdiSubWindow()
     sub_window.setAttribute(QtCore.Qt.WA_DeleteOnClose, True)
     sub_window.setGeometry(500, 300, 800, 600)
     child = QCVideoViewer(None, signals)
     sub_window.layout().addWidget(child)
     self.mdiArea.addSubWindow(sub_window)
     return child
Beispiel #2
0
    def gen_analysis_window(self, dm):
        # vpw = VoltammetryPlotWidget(dm)
        aw = AnalysisWidget(dm)
        window = QtWidgets.QMdiSubWindow()
        window.setAttribute(QtCore.Qt.WA_DeleteOnClose)
        window.setWidget(aw)
        window.setWindowTitle(os.path.split(dm.path)[-1])
        window.setToolTip(dm.path)

        self.mdi.addSubWindow(window)
        window.resize(self.mdi.size() * 0.5)
        window.show()