equal
deleted
inserted
replaced
271 else: |
271 else: |
272 directory = os.getcwd() |
272 directory = os.getcwd() |
273 |
273 |
274 result = None |
274 result = None |
275 |
275 |
276 dialog = wx.FileDialog(self, _("Choose a file"), directory, "", _("PLCOpen files (*.xml)|*.xml|All files|*.*"), wx.OPEN) |
276 dialog = wx.FileDialog(self, _("Choose a file"), directory, "", _("PLCOpen files (*.xml)|*.xml|All files|*.*"), wx.FD_OPEN) |
277 if dialog.ShowModal() == wx.ID_OK: |
277 if dialog.ShowModal() == wx.ID_OK: |
278 filepath = dialog.GetPath() |
278 filepath = dialog.GetPath() |
279 if os.path.isfile(filepath): |
279 if os.path.isfile(filepath): |
280 self.ResetView() |
280 self.ResetView() |
281 controler = PLCControler() |
281 controler = PLCControler() |