controls/DebugVariablePanel/DebugVariablePanel.py
changeset 1744 69dfdb26f600
parent 1737 a39c2918c015
child 1745 f9d32913bad4
equal deleted inserted replaced
1743:c3c3d1318130 1744:69dfdb26f600
   747         self.MaskLabel.SetInsertionPoint(self.MaskLabel.GetLastPosition())
   747         self.MaskLabel.SetInsertionPoint(self.MaskLabel.GetLastPosition())
   748 
   748 
   749     def GetVariableNameMask(self):
   749     def GetVariableNameMask(self):
   750         return self.VariableNameMask
   750         return self.VariableNameMask
   751 
   751 
   752     def InsertValue(self, iec_path, idx = None, force=False, graph=False):
   752     def InsertValue(self, iec_path, idx=None, force=False, graph=False):
   753         for panel in self.GraphicPanels:
   753         for panel in self.GraphicPanels:
   754             if panel.GetItem(iec_path) is not None:
   754             if panel.GetItem(iec_path) is not None:
   755                 if graph and isinstance(panel, DebugVariableTextViewer):
   755                 if graph and isinstance(panel, DebugVariableTextViewer):
   756                     self.ToggleViewerType(panel)
   756                     self.ToggleViewerType(panel)
   757                 return
   757                 return
   775             self.ResetVariableNameMask()
   775             self.ResetVariableNameMask()
   776             self.RefreshGraphicsSizer()
   776             self.RefreshGraphicsSizer()
   777             self.Thaw()
   777             self.Thaw()
   778             self.ForceRefresh()
   778             self.ForceRefresh()
   779 
   779 
   780     def MoveValue(self, iec_path, idx = None, graph=False):
   780     def MoveValue(self, iec_path, idx=None, graph=False):
   781         if idx is None:
   781         if idx is None:
   782             idx = len(self.GraphicPanels)
   782             idx = len(self.GraphicPanels)
   783         source_panel = None
   783         source_panel = None
   784         item = None
   784         item = None
   785         for panel in self.GraphicPanels:
   785         for panel in self.GraphicPanels: