177 kind=wx.ITEM_NORMAL, text=_(u'About')) |
177 kind=wx.ITEM_NORMAL, text=_(u'About')) |
178 self.Bind(wx.EVT_MENU, self.OnPLCOpenEditorMenu, id=wx.ID_HELP) |
178 self.Bind(wx.EVT_MENU, self.OnPLCOpenEditorMenu, id=wx.ID_HELP) |
179 #self.Bind(wx.EVT_MENU, self.OnPLCOpenMenu, id=wx.ID_HELP_CONTENTS) |
179 #self.Bind(wx.EVT_MENU, self.OnPLCOpenMenu, id=wx.ID_HELP_CONTENTS) |
180 self.Bind(wx.EVT_MENU, self.OnAboutMenu, id=wx.ID_ABOUT) |
180 self.Bind(wx.EVT_MENU, self.OnAboutMenu, id=wx.ID_ABOUT) |
181 |
181 |
182 ## Constructor of the PLCOpenEditor class. |
|
183 # @param parent The parent window. |
|
184 # @param controler The controler been used by PLCOpenEditor (default: None). |
|
185 # @param fileOpen The filepath to open if no controler defined (default: None). |
|
186 # @param debug The filepath to open if no controler defined (default: False). |
|
187 def __init__(self, parent, fileOpen=None): |
182 def __init__(self, parent, fileOpen=None): |
|
183 """ Constructor of the PLCOpenEditor class. |
|
184 |
|
185 :param parent: The parent window. |
|
186 :param fileOpen: The filepath to open if no controler defined (default: None). |
|
187 """ |
188 self.icon = wx.Icon(os.path.join(beremiz_dir, "images", "poe.ico"), wx.BITMAP_TYPE_ICO) |
188 self.icon = wx.Icon(os.path.join(beremiz_dir, "images", "poe.ico"), wx.BITMAP_TYPE_ICO) |
189 IDEFrame.__init__(self, parent) |
189 IDEFrame.__init__(self, parent) |
190 |
190 |
191 result = None |
191 result = None |
192 |
192 |