chiark / gitweb /
Fix the default timelaps filename.
authordaid <daid303@gmail.com>
Tue, 3 Dec 2013 10:34:36 +0000 (11:34 +0100)
committerdaid <daid303@gmail.com>
Tue, 3 Dec 2013 10:34:36 +0000 (11:34 +0100)
Cura/gui/printWindow.py

index 4160e3260f472abfc6d36af095f5e753c0647091..4f94191af1212871f3a542a5fe971d10b9a46fd3 100644 (file)
@@ -361,7 +361,7 @@ class printWindow(wx.Frame):
                        self.camPage.SetSizer(sizer)
 
                        self.timelapsEnable = wx.CheckBox(self.camPage, -1, _("Enable timelapse movie recording"))
-                       self.timelapsSavePath = wx.TextCtrl(self.camPage, -1, os.path.expanduser('~/timelaps_' + datetime.datetime.now().strftime('%Y-%m-%d_%H:%M') + '.mpg'))
+                       self.timelapsSavePath = wx.TextCtrl(self.camPage, -1, os.path.expanduser('~/timelaps_' + datetime.datetime.now().strftime('%Y-%m-%d_%H-%M') + '.mpg'))
                        sizer.Add(self.timelapsEnable, pos=(0, 0), span=(1, 2), flag=wx.EXPAND)
                        sizer.Add(self.timelapsSavePath, pos=(1, 0), span=(1, 2), flag=wx.EXPAND)
 
@@ -433,7 +433,7 @@ class printWindow(wx.Frame):
                self.directControlPanel.Enable(
                        self.machineCom is not None and self.machineCom.isOperational() and not self.machineCom.isPrinting())
                self.machineLogButton.Show(self.machineCom is not None and self.machineCom.isClosedOrError())
-               if self.cam != None:
+               if self.cam is not None:
                        for button in self.cam.buttons:
                                button.Enable(self.machineCom is None or not self.machineCom.isPrinting())