浏览代码

wxGUI/forms: set mask for file browser to (*)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58006 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父节点
当前提交
9b7d0eeeea
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gui_core/forms.py

+ 2 - 2
gui/wxpython/gui_core/forms.py

@@ -1464,9 +1464,9 @@ class CmdPanel(wx.Panel):
                     except:
                     except:
                         fExt = None
                         fExt = None
                     if not fExt:
                     if not fExt:
-                        fMask = '*.*'
+                        fMask = '*'
                     else:
                     else:
-                        fMask = '%s files (*%s)|*%s|Files (*.*)|*.*' % (fExt[1:].upper(), fExt, fExt)
+                        fMask = '%s files (*%s)|*%s|Files (*)|*' % (fExt[1:].upper(), fExt, fExt)
                     fbb = filebrowse.FileBrowseButton(parent = which_panel, id = wx.ID_ANY, fileMask = fMask,
                     fbb = filebrowse.FileBrowseButton(parent = which_panel, id = wx.ID_ANY, fileMask = fMask,
                                                       size = globalvar.DIALOG_GSELECT_SIZE, labelText = '',
                                                       size = globalvar.DIALOG_GSELECT_SIZE, labelText = '',
                                                       dialogTitle = _('Choose %s') % \
                                                       dialogTitle = _('Choose %s') % \