equal
deleted
inserted
replaced
327 event.Skip() |
327 event.Skip() |
328 |
328 |
329 def OnVariablesListLeftDown(self, event): |
329 def OnVariablesListLeftDown(self, event): |
330 if self.InstanceChoice.GetSelection() == -1: |
330 if self.InstanceChoice.GetSelection() == -1: |
331 wx.CallAfter(self.ShowInstanceChoicePopup) |
331 wx.CallAfter(self.ShowInstanceChoicePopup) |
|
332 else: |
|
333 instance_path = self.InstanceChoice.GetStringSelection() |
|
334 item, flags = self.VariablesList.HitTest(event.GetPosition()) |
|
335 if item is not None and flags & CT.TREE_HITTEST_ONITEMLABEL: |
|
336 item_infos = self.VariablesList.GetPyData(item) |
|
337 if item_infos is not None and item_infos["class"] in ITEMS_VARIABLE: |
|
338 item_path = "%s.%s" % (instance_path, item_infos["name"]) |
|
339 data = wx.TextDataObject(str((item_path, "debug"))) |
|
340 dragSource = wx.DropSource(self.VariablesList) |
|
341 dragSource.SetData(data) |
|
342 dragSource.DoDragDrop() |
332 event.Skip() |
343 event.Skip() |
333 |
344 |
334 def OnInstanceChoiceLeftDown(self, event): |
345 def OnInstanceChoiceLeftDown(self, event): |
335 event.Skip() |
346 event.Skip() |