controls/DebugVariablePanel/DebugVariableTablePanel.py
changeset 1214 2ef048b5383c
parent 1209 953a8f14040a
equal deleted inserted replaced
1213:599e43ec921b 1214:2ef048b5383c
   468             self.PopupMenu(menu)
   468             self.PopupMenu(menu)
   469             
   469             
   470             menu.Destroy()
   470             menu.Destroy()
   471         event.Skip()
   471         event.Skip()
   472     
   472     
   473     def InsertValue(self, iec_path, index=None, force=False):
   473     def InsertValue(self, iec_path, index=None, force=False, graph=False):
   474         """
   474         """
   475         Insert a new variable to debug in table
   475         Insert a new variable to debug in table
   476         @param iec_path: Variable path to debug
   476         @param iec_path: Variable path to debug
   477         @param index: Row where insert the variable in table (default None,
   477         @param index: Row where insert the variable in table (default None,
   478         insert at last position)
   478         insert at last position)
   479         @param force: Force insertion of variable even if not defined in
   479         @param force: Force insertion of variable even if not defined in
   480         producer side
   480         producer side
       
   481         @param graph: Values must be displayed in graph canvas (Do nothing,
       
   482         here for compatibility with Debug Variable Graphic Panel)
   481         """
   483         """
   482         # Return immediately if variable is already debugged
   484         # Return immediately if variable is already debugged
   483         for item in self.Table.GetData():
   485         for item in self.Table.GetData():
   484             if iec_path == item.GetVariable():
   486             if iec_path == item.GetVariable():
   485                 return
   487                 return