editors/IECCodeViewer.py
changeset 1057 3837e165b3f9
parent 815 e4f24593a758
child 1262 7b9259945453
equal deleted inserted replaced
1056:f7aaf31d000f 1057:3837e165b3f9
     1 
     1 
     2 from editors.TextViewer import TextViewer
     2 from editors.TextViewer import TextViewer
       
     3 from plcopen.plcopen import TestTextElement
     3 
     4 
     4 class IECCodeViewer(TextViewer):
     5 class IECCodeViewer(TextViewer):
     5     
     6     
     6     def __del__(self):
     7     def __del__(self):
     7         TextViewer.__del__(self)
     8         TextViewer.__del__(self)
     8         if getattr(self, "_OnClose"):
     9         if getattr(self, "_OnClose"):
     9             self._OnClose(self)
    10             self._OnClose(self)
       
    11             
       
    12     def Search(self, criteria):
       
    13         return [((self.TagName, "body", 0),) + result for result in TestTextElement(self.Editor.GetText(), criteria)]