equal
deleted
inserted
replaced
99 # Data contain a reference to a variable to debug |
99 # Data contain a reference to a variable to debug |
100 elif values[1] == "debug": |
100 elif values[1] == "debug": |
101 |
101 |
102 # Get Before which Viewer the variable has to be moved or added |
102 # Get Before which Viewer the variable has to be moved or added |
103 # according to the position of mouse in Viewer. |
103 # according to the position of mouse in Viewer. |
104 width, height = self.ParentControl.GetSize() |
104 _width, height = self.ParentControl.GetSize() |
105 target_idx = self.ParentControl.GetIndex() |
105 target_idx = self.ParentControl.GetIndex() |
106 if y > height / 2: |
106 if y > height / 2: |
107 target_idx += 1 |
107 target_idx += 1 |
108 |
108 |
109 # Drag'n Drop is an internal is an internal move inside Debug |
109 # Drag'n Drop is an internal is an internal move inside Debug |
235 """ |
235 """ |
236 # Get first item |
236 # Get first item |
237 item = self.ItemsDict.values()[0] |
237 item = self.ItemsDict.values()[0] |
238 |
238 |
239 # Calculate item path bounding box |
239 # Calculate item path bounding box |
240 width, height = self.GetSize() |
240 _width, height = self.GetSize() |
241 item_path = item.GetVariable( |
241 item_path = item.GetVariable( |
242 self.ParentWindow.GetVariableNameMask()) |
242 self.ParentWindow.GetVariableNameMask()) |
243 w, h = self.GetTextExtent(item_path) |
243 w, h = self.GetTextExtent(item_path) |
244 |
244 |
245 # Test if mouse has been pressed in this bounding box. In that case |
245 # Test if mouse has been pressed in this bounding box. In that case |