svghmi/svghmi.py
branchwxPython4
changeset 3572 b46af5b80c7d
parent 3526 074046800624
child 3573 1ee56fb544fc
--- a/svghmi/svghmi.py	Sun Jul 31 12:27:47 2022 +0200
+++ b/svghmi/svghmi.py	Mon Aug 08 18:07:23 2022 +0200
@@ -721,7 +721,7 @@
         return res
 
     def _ImportSVG(self):
-        dialog = wx.FileDialog(self.GetCTRoot().AppFrame, _("Choose a SVG file"), os.getcwd(), "",  _("SVG files (*.svg)|*.svg|All files|*.*"), wx.OPEN)
+        dialog = wx.FileDialog(self.GetCTRoot().AppFrame, _("Choose a SVG file"), os.getcwd(), "",  _("SVG files (*.svg)|*.svg|All files|*.*"), wx.FD_OPEN)
         if dialog.ShowModal() == wx.ID_OK:
             svgpath = dialog.GetPath()
             if os.path.isfile(svgpath):
@@ -765,7 +765,7 @@
     def _EditPO(self):
         """ Select a specific translation and edit it with POEdit """
         project_path = self.CTNPath()
-        dialog = wx.FileDialog(self.GetCTRoot().AppFrame, _("Choose a PO file"), project_path, "",  _("PO files (*.po)|*.po"), wx.OPEN)
+        dialog = wx.FileDialog(self.GetCTRoot().AppFrame, _("Choose a PO file"), project_path, "",  _("PO files (*.po)|*.po"), wx.FD_OPEN)
         if dialog.ShowModal() == wx.ID_OK:
             POFile = dialog.GetPath()
             if os.path.isfile(POFile):
@@ -791,7 +791,7 @@
             _("Choose a font"),
             os.path.expanduser("~"),
             "",
-            _("Font files (*.ttf;*.otf;*.woff;*.woff2)|*.ttf;*.otf;*.woff;*.woff2"), wx.OPEN)
+            _("Font files (*.ttf;*.otf;*.woff;*.woff2)|*.ttf;*.otf;*.woff;*.woff2"), wx.FD_OPEN)
 
         if dialog.ShowModal() == wx.ID_OK:
             fontfile = dialog.GetPath()
@@ -828,7 +828,7 @@
             _("Choose a font to remove"),
             fontdir,
             "",
-            _("Font files (*.ttf;*.otf;*.woff;*.woff2)|*.ttf;*.otf;*.woff;*.woff2"), wx.OPEN)
+            _("Font files (*.ttf;*.otf;*.woff;*.woff2)|*.ttf;*.otf;*.woff;*.woff2"), wx.FD_OPEN)
         if dialog.ShowModal() == wx.ID_OK:
             fontfile = dialog.GetPath()
             if os.path.isfile(fontfile):