- fixed issue with trying to access GUI from different threads by adding a new signal for printing to shell messages

This commit is contained in:
Marius Stanciu
2020-06-07 15:30:46 +03:00
committed by Marius
parent 2c2db0efe2
commit 039500b43f
6 changed files with 20 additions and 14 deletions

View File

@@ -100,4 +100,4 @@ class TclCommandSetOrigin(TclCommand):
self.app.on_set_zero_click(event=None, location=loc, noplot=True, use_thread=False)
msg = '[success] Tcl %s: %s' % (_('Origin set by offsetting all loaded objects with '),
'{0:.4f}, {0:.4f}'.format(loc[0], loc[1]))
self.app.shell_message(msg, success=True, show=False)
self.app.inform_shell.emit(msg)