equal
deleted
inserted
replaced
94 values = None |
94 values = None |
95 |
95 |
96 # Display message if data is invalid |
96 # Display message if data is invalid |
97 if message is not None: |
97 if message is not None: |
98 wx.CallAfter(self.ShowMessage, message) |
98 wx.CallAfter(self.ShowMessage, message) |
|
99 return False |
99 |
100 |
100 # Data contain a reference to a variable to debug |
101 # Data contain a reference to a variable to debug |
101 elif values[1] == "debug": |
102 elif values[1] == "debug": |
102 |
103 |
103 # Get Before which Viewer the variable has to be moved or added |
104 # Get Before which Viewer the variable has to be moved or added |
116 # Drag'n Drop was initiated by another control of Beremiz |
117 # Drag'n Drop was initiated by another control of Beremiz |
117 else: |
118 else: |
118 self.ParentWindow.InsertValue(values[0], |
119 self.ParentWindow.InsertValue(values[0], |
119 target_idx, |
120 target_idx, |
120 force=True) |
121 force=True) |
|
122 return True |
|
123 return False |
121 |
124 |
122 def OnLeave(self): |
125 def OnLeave(self): |
123 """ |
126 """ |
124 Function called when mouse is leave Drop Target |
127 Function called when mouse is leave Drop Target |
125 """ |
128 """ |