Avoid threading issues on wx

parent a94b33dd
......@@ -1765,7 +1765,8 @@ Printrun. If not, see <http://www.gnu.org/licenses/>."""
self.logError(traceback.format_exc())
def update_pos(self):
self.statusbar.SetStatusText(str(self.posreport).split(" E:")[0], 2)
wx.CallAfter(self.statusbar.SetStatusText str(self.posreport).split(" E:")[0], 2)
#self.statusbar.SetStatusText(str(self.posreport).split(" E:")[0], 2)
bits = gcoder.m114_exp.findall(self.posreport)
x = None
y = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment