controls/DebugVariablePanel/DebugVariablePanel.py
branchwxPython4
changeset 3660 0e41dbe6ddcd
parent 3659 278dc1144059
child 3750 f62625418bff
equal deleted inserted replaced
3659:278dc1144059 3660:0e41dbe6ddcd
   132             values = None
   132             values = None
   133 
   133 
   134         # Display message if data is invalid
   134         # Display message if data is invalid
   135         if message is not None:
   135         if message is not None:
   136             wx.CallAfter(self.ShowMessage, message)
   136             wx.CallAfter(self.ShowMessage, message)
       
   137             return False
   137 
   138 
   138         # Data contain a reference to a variable to debug
   139         # Data contain a reference to a variable to debug
   139         elif values[1] == "debug":
   140         elif values[1] == "debug":
   140 
   141 
   141             # Drag'n Drop is an internal is an internal move inside Debug
   142             # Drag'n Drop is an internal is an internal move inside Debug
   144                 self.ParentWindow.MoveValue(values[0])
   145                 self.ParentWindow.MoveValue(values[0])
   145 
   146 
   146             # Drag'n Drop was initiated by another control of Beremiz
   147             # Drag'n Drop was initiated by another control of Beremiz
   147             else:
   148             else:
   148                 self.ParentWindow.InsertValue(values[0], force=True)
   149                 self.ParentWindow.InsertValue(values[0], force=True)
       
   150 
       
   151             return True
       
   152         return False
   149 
   153 
   150     def OnLeave(self):
   154     def OnLeave(self):
   151         """
   155         """
   152         Function called when mouse is leave Drop Target
   156         Function called when mouse is leave Drop Target
   153         """
   157         """