Explorar o código

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

aroche %!s(int64=5) %!d(string=hai) anos
pai
achega
3a24c8c74f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()