equal
deleted
inserted
replaced
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)] |