def __init__(self, parent, compound, E, table):
super(PlotDlg, self).__init__(parent)
bl = QVBoxLayout(self)
self.plotCanvas = MyMplCanvas(self)
self.plotCanvas.setSizePolicy(
QSizePolicy.Expanding, QSizePolicy.Expanding)
self.toolbar = ToolBar(self.plotCanvas, self)
bl.addWidget(self.toolbar)
bl.addWidget(self.plotCanvas)
pg = parent.frameGeometry()
self.move(parent.x()+pg.width(), parent.y())
pg = parent.geometry()
self.resize(pg.width()*1.5, pg.height())
self.setWindowTitle("plots of f''")
self.setWindowFlags(QtCore.Qt.Window)
self.show()
self.plotCanvas.plot(compound, E, table)
# def closeEvent(self, event): # is not invoked by esc. press
评论列表
文章目录