equal
deleted
inserted
replaced
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 """ |