1456 WeakCallableDict, data_log, status = data_tuple |
1456 WeakCallableDict, data_log, status = data_tuple |
1457 data_log.append((debug_tick, value)) |
1457 data_log.append((debug_tick, value)) |
1458 for weakcallable,(args,kwargs) in WeakCallableDict.iteritems(): |
1458 for weakcallable,(args,kwargs) in WeakCallableDict.iteritems(): |
1459 # delegate call to wx event loop |
1459 # delegate call to wx event loop |
1460 #print weakcallable, value, args, kwargs |
1460 #print weakcallable, value, args, kwargs |
1461 wx.CallAfter(weakcallable.SetValue, value, *args, **kwargs) |
1461 if getattr(weakcallable, "SetValue", None) is not None: |
|
1462 wx.CallAfter(weakcallable.SetValue, value, *args, **kwargs) |
|
1463 elif getattr(weakcallable, "AddPoint", None) is not None: |
|
1464 wx.CallAfter(weakcallable.AddPoint, debug_tick, value, *args, **kwargs) |
1462 # This will block thread if more than one call is waiting |
1465 # This will block thread if more than one call is waiting |
1463 elif debug_vars is not None: |
1466 elif debug_vars is not None: |
1464 wx.CallAfter(self.logger.write_warning, |
1467 wx.CallAfter(self.logger.write_warning, |
1465 "Debug data not coherent %d != %d\n"%(len(debug_vars), len(self.TracedIECPath))) |
1468 "Debug data not coherent %d != %d\n"%(len(debug_vars), len(self.TracedIECPath))) |
1466 elif debug_tick == -1: |
1469 elif debug_tick == -1: |