etherlab/EtherCATManagementEditor.py
branchwxPython4
changeset 3572 b46af5b80c7d
parent 3303 0ffb41625592
child 3750 f62625418bff
--- a/etherlab/EtherCATManagementEditor.py	Sun Jul 31 12:27:47 2022 +0200
+++ b/etherlab/EtherCATManagementEditor.py	Mon Aug 08 18:07:23 2022 +0200
@@ -1497,7 +1497,7 @@
         if check_connect_flag:
             status, _log_count = self.Controler.GetCTRoot()._connector.GetPLCstatus()
             if status is not PlcStatus.Started:
-                dialog = wx.FileDialog(self, _("Choose a binary file"), os.getcwd(), "",  _("bin files (*.bin)|*.bin"), wx.OPEN)
+                dialog = wx.FileDialog(self, _("Choose a binary file"), os.getcwd(), "",  _("bin files (*.bin)|*.bin"), wx.FD_OPEN)
 
                 if dialog.ShowModal() == wx.ID_OK:
                     filepath = dialog.GetPath()
@@ -1896,7 +1896,7 @@
         @param event : wx.EVT_BUTTON object
         """
         dialog = wx.FileDialog(self, _("Choose a binary file"), os.getcwd(), "",
-                               _("bin files (*.bin)|*.bin"), wx.OPEN)
+                               _("bin files (*.bin)|*.bin"), wx.FD_OPEN)
 
         if dialog.ShowModal() == wx.ID_OK:
             filepath = dialog.GetPath()