py_ext/PythonFileCTNMixin.py
changeset 734 5c42cafaee15
parent 728 e0424e96e3fd
child 738 413946c04c87
equal deleted inserted replaced
733:915be999f3f0 734:5c42cafaee15
     1 import os
     1 import os
     2 from util import opjimg
       
     3 from PLCControler import UndoBuffer
     2 from PLCControler import UndoBuffer
     4 from PythonEditor import PythonEditor
     3 from PythonEditor import PythonEditor
     5 
     4 
     6 from xml.dom import minidom
     5 from xml.dom import minidom
     7 from xmlclass import *
     6 from xmlclass import *
    14     EditorType = PythonEditor
    13     EditorType = PythonEditor
    15     
    14     
    16     def __init__(self):
    15     def __init__(self):
    17         
    16         
    18         self.ConfNodeMethods.insert(0, 
    17         self.ConfNodeMethods.insert(0, 
    19                 {"bitmap" : opjimg("editPYTHONcode"),
    18                 {"bitmap" : "editPYTHONcode",
    20                  "name" : _("Edit Python File"), 
    19                  "name" : _("Edit Python File"), 
    21                  "tooltip" : _("Edit Python File"),
    20                  "tooltip" : _("Edit Python File"),
    22                  "method" : "_OpenView"},
    21                  "method" : "_OpenView"},
    23         )
    22         )
    24 
    23