equal
deleted
inserted
replaced
67 |
67 |
68 beremiz_dir = paths.AbsDir(__file__) |
68 beremiz_dir = paths.AbsDir(__file__) |
69 |
69 |
70 |
70 |
71 class PLCOpenEditor(IDEFrame): |
71 class PLCOpenEditor(IDEFrame): |
72 |
|
73 # Compatibility function for wx versions < 2.6 |
|
74 if wx.VERSION < (2, 6, 0): |
|
75 def Bind(self, event, function, id=None): |
|
76 if id is not None: |
|
77 event(self, id, function) |
|
78 else: |
|
79 event(self, function) |
|
80 |
72 |
81 def _init_coll_FileMenu_Items(self, parent): |
73 def _init_coll_FileMenu_Items(self, parent): |
82 AppendMenu(parent, help='', id=wx.ID_NEW, |
74 AppendMenu(parent, help='', id=wx.ID_NEW, |
83 kind=wx.ITEM_NORMAL, text=_(u'New') + '\tCTRL+N') |
75 kind=wx.ITEM_NORMAL, text=_(u'New') + '\tCTRL+N') |
84 AppendMenu(parent, help='', id=wx.ID_OPEN, |
76 AppendMenu(parent, help='', id=wx.ID_OPEN, |