editors/Viewer.py
changeset 1741 dd94b9a68c61
parent 1740 b789b695b5c6
child 1743 c3c3d1318130
equal deleted inserted replaced
1740:b789b695b5c6 1741:dd94b9a68c61
   438         message = wx.MessageDialog(self.ParentWindow, message, _("Error"), wx.OK|wx.ICON_ERROR)
   438         message = wx.MessageDialog(self.ParentWindow, message, _("Error"), wx.OK|wx.ICON_ERROR)
   439         message.ShowModal()
   439         message.ShowModal()
   440         message.Destroy()
   440         message.Destroy()
   441 
   441 
   442 
   442 
   443 
       
   444 class DebugInstanceName(DebugDataConsumer):
   443 class DebugInstanceName(DebugDataConsumer):
   445     VALUE_TRANSLATION = {True: _("Active"), False: _("Inactive")}
   444     VALUE_TRANSLATION = {True: _("Active"), False: _("Inactive")}
   446 
   445 
   447     def __init__(self, parent):
   446     def __init__(self, parent):
   448         DebugDataConsumer.__init__(self)
   447         DebugDataConsumer.__init__(self)
  1178 
  1177 
  1179 
  1178 
  1180 #-------------------------------------------------------------------------------
  1179 #-------------------------------------------------------------------------------
  1181 #                          Refresh functions
  1180 #                          Refresh functions
  1182 #-------------------------------------------------------------------------------
  1181 #-------------------------------------------------------------------------------
  1183 
       
  1184 
  1182 
  1185     def ElementNeedRefresh(self, element):
  1183     def ElementNeedRefresh(self, element):
  1186         self.ElementRefreshList_lock.acquire()
  1184         self.ElementRefreshList_lock.acquire()
  1187         self.ElementRefreshList.append(element)
  1185         self.ElementRefreshList.append(element)
  1188         self.ElementRefreshList_lock.release()
  1186         self.ElementRefreshList_lock.release()
  3247 
  3245 
  3248 #-------------------------------------------------------------------------------
  3246 #-------------------------------------------------------------------------------
  3249 #                          Model delete functions
  3247 #                          Model delete functions
  3250 #-------------------------------------------------------------------------------
  3248 #-------------------------------------------------------------------------------
  3251 
  3249 
  3252 
       
  3253     def DeleteBlock(self, block):
  3250     def DeleteBlock(self, block):
  3254         elements = []
  3251         elements = []
  3255         for output in block.GetConnectors()["outputs"]:
  3252         for output in block.GetConnectors()["outputs"]:
  3256             for element in output.GetConnectedBlocks():
  3253             for element in output.GetConnectedBlocks():
  3257                 if element not in elements:
  3254                 if element not in elements: