Merge pull request #193 from OhmEye/master
Modified wildcard for FileDialog to add an choice to show All Filesmaster
commit
65e01214ac
|
@ -1363,7 +1363,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
|
|||
except:
|
||||
pass
|
||||
dlg=wx.FileDialog(self,_("Open file to print"),basedir,style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST)
|
||||
dlg.SetWildcard(_("OBJ, STL, and GCODE files (;*.gcode;*.gco;*.g;*.stl;*.STL;*.obj;*.OBJ;)"))
|
||||
dlg.SetWildcard(_("OBJ, STL, and GCODE files (*.gcode;*.gco;*.g;*.stl;*.STL;*.obj;*.OBJ)|*.gcode;*.gco;*.g;*.stl;*.STL;*.obj;*.OBJ|All Files (*.*)|*.*"))
|
||||
if(filename is not None or dlg.ShowModal() == wx.ID_OK):
|
||||
if filename is not None:
|
||||
name=filename
|
||||
|
|
Loading…
Reference in New Issue