Lines Matching refs:slider
366 self.slider=[None]*len(self.filter_state.frequencies)
367 self.label=[None]*len(self.slider)
372 def add_slider(slider,label, c): argument
373 self.layout().addWidget(slider,0,c,qt.AlignHCenter)
375 … self.layout().setColumnMinimumWidth(c,max(label.sizeHint().width(),slider.sizeHint().width()))
377 slider=QtWidgets.QSlider(QtCore.Qt.Vertical,self)
379 slider.setRange(-1000,2000)
380 slider.setSingleStep(1)
381 return (slider,label)
385 slider,label=create_slider(self.hz2label(hz))
386 self.slider[i]=slider
390 add_slider(slider,label,i+1)
401 def connect(writer,reader,slider,label): argument
402 slider.valueChanged.connect(writer)
404 label_cb=partial(slider.setValue,0)
414 self.writer_callbacks=[None]*len(self.slider)
415 self.reader_callbacks=[None]*len(self.slider)
417 for i in range(len(self.slider)):
422 self.slider[i],
425 def disconnect(writer,reader,label_cb,slider,label): argument
426 slider.valueChanged.disconnect(writer)
431 for i in range(len(self.slider)):
435 self.slider[i],
451 slider=self.slider[i]
452 slider.blockSignals(True)
453 slider.setValue(self.coef2slider(math.sqrt(2.0)*self.filter_state.coefficients[i]))
454 slider.blockSignals(False)