chiark / gitweb /
Prevent unresponsive print window
authorMartin Wickham <spexguy070@gmail.com>
Fri, 14 Nov 2014 02:39:52 +0000 (20:39 -0600)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 14 Jan 2015 17:32:23 +0000 (12:32 -0500)
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 199dfc4b377760b0acb5262abc2f741cb1eacc04..eb2eb250b0c06e3b126141ce719d97a34c4b349e 100644 (file)
@@ -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())