controls/PouInstanceVariablesPanel.py
changeset 1107 9303f6b900fe
parent 1082 5a08404d5dda
child 1189 93a4431a0cd8
equal deleted inserted replaced
1106:843d181f73b4 1107:9303f6b900fe
   346             instance_path = self.InstanceChoice.GetStringSelection()
   346             instance_path = self.InstanceChoice.GetStringSelection()
   347             item, flags = self.VariablesList.HitTest(event.GetPosition())
   347             item, flags = self.VariablesList.HitTest(event.GetPosition())
   348             if item is not None and flags & CT.TREE_HITTEST_ONITEMLABEL:
   348             if item is not None and flags & CT.TREE_HITTEST_ONITEMLABEL:
   349                 item_infos = self.VariablesList.GetPyData(item)
   349                 item_infos = self.VariablesList.GetPyData(item)
   350                 if item_infos is not None and item_infos["class"] in ITEMS_VARIABLE:
   350                 if item_infos is not None and item_infos["class"] in ITEMS_VARIABLE:
       
   351                     self.ParentWindow.EnsureTabVisible(
       
   352                         self.ParentWindow.DebugVariablePanel)
   351                     item_path = "%s.%s" % (instance_path, item_infos["name"])
   353                     item_path = "%s.%s" % (instance_path, item_infos["name"])
   352                     data = wx.TextDataObject(str((item_path, "debug")))
   354                     data = wx.TextDataObject(str((item_path, "debug")))
   353                     dragSource = wx.DropSource(self.VariablesList)
   355                     dragSource = wx.DropSource(self.VariablesList)
   354                     dragSource.SetData(data)
   356                     dragSource.SetData(data)
   355                     dragSource.DoDragDrop()
   357                     dragSource.DoDragDrop()