Browse Source

Fix unable to open file from python editor (#288)

aroche 5 years ago
parent
commit
3a24c8c74f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gui_core/pyedit.py

+ 1 - 1
gui/wxpython/gui_core/pyedit.py

@@ -379,7 +379,7 @@ class PyEditController(object):
                             message=_("Open file"),
                             defaultDir=os.getcwd(),
                             wildcard=_("Python script (*.py)|*.py"),
-                            style=wx.OPEN)
+                            style=wx.FD_OPEN)
 
         if dlg.ShowModal() == wx.ID_OK:
             filename = dlg.GetPath()