- 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

@@ -2083,14 +2083,14 @@ class ToolIsolation(AppTool, Gerber):
self.app.inform.emit("[WARNING] %s" % _("Partial failure. The geometry was processed with all tools.\n"
"But there are still not-isolated geometry elements. "
"Try to include a tool with smaller diameter."))
self.app.shell_message(msg=_("The following are coordinates for the copper features "
"that could not be isolated:"))
msg = _("The following are coordinates for the copper features that could not be isolated:")
self.app.inform_shell.emit(msg)
msg = ''
for geo in work_geo:
pt = geo.representative_point()
coords = '(%s, %s), ' % (str(pt.x), str(pt.y))
msg += coords
self.app.shell_message(msg=msg)
self.app.inform_shell.emit(msg=msg)
def combined_normal(self, iso_obj, iso2geo, tools_storage, lim_area, negative_dia=None, plot=True):
"""