Rename slice to prepare in the batch runner.

master
daid303 2012-10-09 09:03:41 +02:00
parent 40c94ed498
commit d5924d4d30
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class batchRunWindow(wx.Frame):
self.listbox = wx.ListBox(self.panel, -1, choices=[]) self.listbox = wx.ListBox(self.panel, -1, choices=[])
self.addButton = wx.Button(self.panel, -1, "Add") self.addButton = wx.Button(self.panel, -1, "Add")
self.remButton = wx.Button(self.panel, -1, "Remove") self.remButton = wx.Button(self.panel, -1, "Remove")
self.sliceButton = wx.Button(self.panel, -1, "Slice") self.sliceButton = wx.Button(self.panel, -1, "Prepare all")
self.addButton.Bind(wx.EVT_BUTTON, self.OnAddModel) self.addButton.Bind(wx.EVT_BUTTON, self.OnAddModel)
self.remButton.Bind(wx.EVT_BUTTON, self.OnRemModel) self.remButton.Bind(wx.EVT_BUTTON, self.OnRemModel)
@ -44,7 +44,7 @@ class batchRunWindow(wx.Frame):
self.sizer.AddGrowableRow(0) self.sizer.AddGrowableRow(0)
def OnAddModel(self, e): def OnAddModel(self, e):
dlg=wx.FileDialog(self, "Open file to batch slice", os.path.split(profile.getPreference('lastFile'))[0], style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST|wx.FD_MULTIPLE) dlg=wx.FileDialog(self, "Open file to batch prepare", os.path.split(profile.getPreference('lastFile'))[0], style=wx.FD_OPEN|wx.FD_FILE_MUST_EXIST|wx.FD_MULTIPLE)
dlg.SetWildcard("STL files (*.stl)|*.stl;*.STL") dlg.SetWildcard("STL files (*.stl)|*.stl;*.STL")
if dlg.ShowModal() == wx.ID_OK: if dlg.ShowModal() == wx.ID_OK:
for filename in dlg.GetPaths(): for filename in dlg.GetPaths():