def GeneratePlot(self): self.PlotWindow = QtWidgets.QWidget() self.ui = GraphicWidgetLogic(self) self.ui.setupUi(self.PlotWindow) self.ui.initializeBinds() self.ui.plotSquare(self.doubleSpinBoxAmplitude.value(), self.doubleSpinBoxFrequency.value()) return self.PlotWindow
def GeneratePlot(self): self.PlotWindow = QtWidgets.QWidget() self.ui = GraphicWidgetLogic(self) self.ui.setupUi(self.PlotWindow) self.ui.initializeBinds() self.ui.plotHarmonic(self.x, self.y) return self.PlotWindow