426 if item_button is not None: |
426 if item_button is not None: |
427 callback = self.ButtonCallBacks[item_button].leftdown |
427 callback = self.ButtonCallBacks[item_button].leftdown |
428 if callback is not None: |
428 if callback is not None: |
429 callback(item_infos) |
429 callback(item_infos) |
430 |
430 |
431 elif flags & CT.TREE_HITTEST_ONITEMLABEL and item_infos.var_class in ITEMS_VARIABLE: |
431 elif (flags & CT.TREE_HITTEST_ONITEMLABEL and |
432 self.ParentWindow.EnsureTabVisible( |
432 item_infos.var_class in ITEMS_VARIABLE): |
433 self.ParentWindow.DebugVariablePanel) |
433 self.ParentWindow.EnsureTabVisible( |
434 item_path = "%s.%s" % (instance_path, item_infos.name) |
434 self.ParentWindow.DebugVariablePanel) |
435 data = wx.TextDataObject(str((item_path, "debug"))) |
435 item_path = "%s.%s" % (instance_path, item_infos.name) |
436 dragSource = wx.DropSource(self.VariablesList) |
436 data = wx.TextDataObject(str((item_path, "debug"))) |
437 dragSource.SetData(data) |
437 dragSource = wx.DropSource(self.VariablesList) |
438 dragSource.DoDragDrop() |
438 dragSource.SetData(data) |
|
439 dragSource.DoDragDrop() |
439 event.Skip() |
440 event.Skip() |
440 |
441 |
441 def OnVariablesListKeyDown(self, event): |
442 def OnVariablesListKeyDown(self, event): |
442 keycode = event.GetKeyCode() |
443 keycode = event.GetKeyCode() |
443 if keycode != wx.WXK_LEFT: |
444 if keycode != wx.WXK_LEFT: |