From: Youness Alaoui Date: Thu, 17 Sep 2015 21:01:44 +0000 (-0400) Subject: more efficient comma striping from title X-Git-Tag: lulzbot-17.05~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1ddf2b8acae7c26444ad2a8e006d5b36b7ad2b88;hp=1815eea2e9cfbac6ee61763f6f6a9d3be668e07f;p=cura.git more efficient comma striping from title --- diff --git a/Cura/gui/printWindow.py b/Cura/gui/printWindow.py index a50e06db..7911b38b 100644 --- a/Cura/gui/printWindow.py +++ b/Cura/gui/printWindow.py @@ -403,7 +403,7 @@ class printWindowPlugin(wx.Frame): if self._infoText is not None: self._infoText.SetLabel(info) else: - self.SetTitle(info.replace('\n', ', ').strip().strip(',')) + self.SetTitle(info.replace('\n', ', ').strip(', ')) if isPrinting != self._isPrinting: self._isPrinting = isPrinting preventComputerFromSleeping(self, self._isPrinting) @@ -939,7 +939,7 @@ class printWindowAdvanced(wx.Frame): info += 'Temperature: %d' % (self._printerConnection.getTemperature(0)) if self._printerConnection.getBedTemperature() > 0: info += ' Bed: %d' % (self._printerConnection.getBedTemperature()) - self.SetTitle(info.replace('\n', ', ').strip().strip(',')) + self.SetTitle(info.replace('\n', ', ').strip(', ')) if isPrinting != self._isPrinting: self._isPrinting = isPrinting preventComputerFromSleeping(self, self._isPrinting)