From 909e1766b06034dcfda1d2f240fceaf53aae727e Mon Sep 17 00:00:00 2001 From: "hg42@gmx.net" Date: Sat, 4 Jan 2014 18:30:17 +0100 Subject: [PATCH] make stdout unbuffered to ensure proper updates of sceneView --HG-- extra : source : 94d8184628cf890b18ea4ff9382fc39699490a0f --- Cura/gui/printWindow.py | 3 +++ 1 file changed, 3 insertions(+) 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() -- 2.30.2