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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user