controls/DebugVariablePanel/DebugVariableGraphicViewer.py
branchwxPython4
changeset 3660 0e41dbe6ddcd
parent 3659 278dc1144059
child 3750 f62625418bff
equal deleted inserted replaced
3659:278dc1144059 3660:0e41dbe6ddcd
   164             values = None
   164             values = None
   165 
   165 
   166         # Display message if data is invalid
   166         # Display message if data is invalid
   167         if message is not None:
   167         if message is not None:
   168             wx.CallAfter(self.ShowMessage, message)
   168             wx.CallAfter(self.ShowMessage, message)
       
   169             return False
   169 
   170 
   170         # Data contain a reference to a variable to debug
   171         # Data contain a reference to a variable to debug
   171         elif values[1] == "debug":
   172         elif values[1] == "debug":
   172             target_idx = self.ParentControl.GetIndex()
   173             target_idx = self.ParentControl.GetIndex()
   173 
   174 
   207                 # Drag'n Drop was initiated by another control of Beremiz
   208                 # Drag'n Drop was initiated by another control of Beremiz
   208                 else:
   209                 else:
   209                     self.ParentWindow.InsertValue(values[0],
   210                     self.ParentWindow.InsertValue(values[0],
   210                                                   target_idx,
   211                                                   target_idx,
   211                                                   force=True)
   212                                                   force=True)
       
   213             return True
       
   214         return False
   212 
   215 
   213     def OnLeave(self):
   216     def OnLeave(self):
   214         """
   217         """
   215         Function called when mouse is leave Drop Target
   218         Function called when mouse is leave Drop Target
   216         """
   219         """