Show STL files as well as stl files in load dialog. Reset Print/Pause buttons on file load

master
kliment 2011-07-17 14:28:15 +02:00
parent 8125f893f6
commit 18722636e6
1 changed files with 4 additions and 2 deletions

View File

@ -671,7 +671,9 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
wx.CallAfter(self.printbtn.Enable)
wx.CallAfter(self.status.SetStatusText,"Loaded "+self.filename+", %d lines"%(len(self.f),))
wx.CallAfter(self.pausebtn.Hide)
wx.CallAfter(self.printbtn.SetLabel,"Print")
threading.Thread(target=self.loadviz).start()
except:
self.filename=fn
@ -699,7 +701,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("STL and GCODE files (;*.gcode;*.g;*.stl;)")
dlg.SetWildcard("STL and GCODE files (;*.gcode;*.g;*.stl;*.STL;)")
if(dlg.ShowModal() == wx.ID_OK):
name=dlg.GetPath()
if not(os.path.exists(name)):