fixes Issue #4 : Redraw graph only once on updating parameter values,i.e. block signals in iupdateTable and emit signal only once.

This commit is contained in:
2015-01-09 10:11:34 +01:00
parent ae30438737
commit 7b9f79ab13
3 changed files with 9 additions and 3 deletions

View File

@@ -90,6 +90,7 @@ class BaseWidget(QGroupBox):
self.changedTable.emit()
def update_table( self, beta, sd_beta=None ):
self.blockSignals(True)
for i, arg in enumerate(beta):
self.inputs[i].setValue(arg)
sd_style=""
@@ -112,6 +113,7 @@ class BaseWidget(QGroupBox):
sd = "( --- )"
self.errors[i].setStyleSheet(sd_style)
self.errors[i].setText(sd)
self.blockSignals(False)
#self.update()
def replaceDoubleSpinBox(self, layout, widget):