소스 검색

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

aroche 5 년 전
부모
커밋
3a24c8c74f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()