- Gerber Editor: a disabled/enabled sequence for the VisPy cursor on Gerber edit make the graphics better

This commit is contained in:
Marius Stanciu
2019-04-13 23:47:02 +03:00
parent 84f3166e2f
commit 0fdd2e4f7c
2 changed files with 8 additions and 2 deletions

View File

@@ -2572,10 +2572,15 @@ class FlatCAMGrbEditor(QtCore.QObject):
self.plot_thread.stop()
self.set_ui()
# now that we hava data, create the GUI interface and add it to the Tool Tab
# now that we have data, create the GUI interface and add it to the Tool Tab
self.build_ui()
self.plot_all()
# HACK: enabling/disabling the cursor seams to somehow update the shapes making them more 'solid'
# - perhaps is a bug in VisPy implementation
self.app.app_cursor.enabled = False
self.app.app_cursor.enabled = True
log.debug("FlatCAMGrbEditor --> delayed_plot finished")
except Exception:
traceback.print_exc()