From 87a8ee7cc1e63f557536f8d50886aeb967b46a58 Mon Sep 17 00:00:00 2001 From: Martin Wickham Date: Thu, 13 Nov 2014 20:39:52 -0600 Subject: [PATCH] Prevent unresponsive print window If the default print window is used, and the printer sends a message back to the main process, the receiving thread calls _addTermLog, which was undefined on the printWindowBasic. It has now been defined. --- Cura/gui/printWindow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cura/gui/printWindow.py b/Cura/gui/printWindow.py index 199dfc4b..eb2eb250 100644 --- a/Cura/gui/printWindow.py +++ b/Cura/gui/printWindow.py @@ -502,6 +502,9 @@ class printWindowBasic(wx.Frame): preventComputerFromSleeping(self._isPrinting) + def _addTermLog(self, msg): + pass + def _updateButtonStates(self): self.connectButton.Show(self._printerConnection.hasActiveConnection()) self.connectButton.Enable(not self._printerConnection.isActiveConnectionOpen() and not self._printerConnection.isActiveConnectionOpening()) -- 2.30.2