controls/PouInstanceVariablesPanel.py
changeset 885 fc91d3718b74
parent 826 098f822ef308
child 898 6b2958f04f30
equal deleted inserted replaced
884:e12228fd8773 885:fc91d3718b74
   270         def GraphButtonCallback(event):
   270         def GraphButtonCallback(event):
   271             if self.InstanceChoice.GetSelection() != -1:
   271             if self.InstanceChoice.GetSelection() != -1:
   272                 if infos["class"] in ITEMS_VARIABLE:
   272                 if infos["class"] in ITEMS_VARIABLE:
   273                     var_path = "%s.%s" % (self.InstanceChoice.GetStringSelection(), 
   273                     var_path = "%s.%s" % (self.InstanceChoice.GetStringSelection(), 
   274                                           infos["name"])
   274                                           infos["name"])
   275                     self.ParentWindow.OpenGraphicViewer(var_path)
   275                     self.ParentWindow.OpenDebugViewer(infos["class"], var_path, infos["type"])
   276             event.Skip()
   276             event.Skip()
   277         return GraphButtonCallback
   277         return GraphButtonCallback
   278     
   278     
   279     def ShowInstanceChoicePopup(self):
   279     def ShowInstanceChoicePopup(self):
   280         self.InstanceChoice.SetFocusFromKbd()
   280         self.InstanceChoice.SetFocusFromKbd()