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

@@ -79,6 +79,11 @@ class Peak(BaseContainer):
self.param_number = 4
def set_id(self, id_num):
"""
Sets color of the peak
:param id_num: peak id
:type id_num: int
"""
self.widget.setId(id_num)
self.color = id_to_color(id_num)
self.widget.setColor(self.color)