From: hg42@gmx.net Date: Sat, 4 Jan 2014 17:30:17 +0000 (+0100) Subject: make stdout unbuffered to ensure proper updates of sceneView X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=909e1766b06034dcfda1d2f240fceaf53aae727e;p=cura.git make stdout unbuffered to ensure proper updates of sceneView --HG-- extra : source : 94d8184628cf890b18ea4ff9382fc39699490a0f --- diff --git a/Cura/gui/printWindow.py b/Cura/gui/printWindow.py index 4f94191a..943ada16 100644 --- a/Cura/gui/printWindow.py +++ b/Cura/gui/printWindow.py @@ -93,6 +93,9 @@ class printProcessMonitor(): def startPrintInterface(filename): #startPrintInterface is called from the main script when we want the printer interface to run in a separate process. # It needs to run in a separate process, as any running python code blocks the GCode sender python code (http://wiki.python.org/moin/GlobalInterpreterLock). + + sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) + app = wx.App(False) resources.setupLocalization(profile.getPreference('language')) printWindowHandle = printWindow()