chiark / gitweb /
Prevent unresponsive print window
authorMartin Wickham <spexguy070@gmail.com>
Fri, 14 Nov 2014 02:39:52 +0000 (20:39 -0600)
committerMartin Wickham <spexguy070@gmail.com>
Fri, 14 Nov 2014 02:39:52 +0000 (20:39 -0600)
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

index dc186647f2bd58f10cfd4db2b50c990f9ef683db..5f3cb0637c904e215bf136446338ddca21c258c5 100644 (file)
@@ -444,6 +444,9 @@ class printWindowBasic(wx.Frame):
                info += '\n\n'
                self.statsText.SetLabel(info)
 
+       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())