def __init__(self, parent=None): QtGui.QMainWindow.__init__(self, parent) uifile = 'main.ui' uic.loadUi(uifile, self) self.adsrw = adsrWidget() self.adsrWidgetContainer.addWidget(self.adsrw)
def __init__(self, parent=None): QtGui.QMainWindow.__init__(self, parent) uifile = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'ui_data', 'main.ui') uic.loadUi(uifile, self) self.adsrw = adsrWidget() self.adsrList = adsrList() self.adsrw.adsr = self.adsrList self.adsrWidgetContainer.addWidget(self.adsrw) self.current_adsr = None self.monitor_adsr = True self.players = [] self.invert_control = False self.trigger_shadow = False self.sounds = [] self.plotw = PlotWindow() self.plotw.plot.setAxisScale(Qwt.QwtPlot.yLeft, 0, 1024, 1024/8) self.plotw.plot.setAxisScale(Qwt.QwtPlot.xBottom, 0, 20, 20./10) self.plotWindowContainer.addWidget(self.plotw) for curve in 'Entrada d/dT Umbral Salida'.split(): self.plotw.add_curve(curve) self._idx = 0 self.plotw.show() self.timer = QtCore.QTimer() self.open_port() self.load_config()