- 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

@@ -137,9 +137,9 @@ class AppObject(QtCore.QObject):
return "fail"
t2 = time.time()
msg = "%f seconds executing initialize()." % (t2 - t1)
msg = "New object with name: %s. %f seconds executing initialize()." % (name, (t2 - t1))
log.debug(msg)
self.app.shell_message(msg)
self.app.inform_shell.emit(msg)
if return_value == 'fail':
log.debug("Object (%s) parsing and/or geometry creation failed." % kind)