editors/IECCodeViewer.py
branchpython3
changeset 3765 88fe6fc9fd38
parent 3750 f62625418bff
equal deleted inserted replaced
3764:d92c1a3dafa7 3765:88fe6fc9fd38
    28 from plcopen.plcopen import TestTextElement
    28 from plcopen.plcopen import TestTextElement
    29 
    29 
    30 
    30 
    31 class IECCodeViewer(TextViewer):
    31 class IECCodeViewer(TextViewer):
    32 
    32 
    33     def __del__(self):
       
    34         TextViewer.__del__(self)
       
    35         if getattr(self, "_OnClose"):
       
    36             self._OnClose(self)
       
    37 
       
    38     def Paste(self):
    33     def Paste(self):
    39         if self.Controler is not None:
    34         if self.Controler is not None:
    40             TextViewer.Paste(self)
    35             TextViewer.Paste(self)
    41 
    36 
    42     def Search(self, criteria):
    37     def Search(self, criteria):