- added a new parameter in Edit -> Preferences -> CNCJob named Annotation Color; it controls the color of the font used for annotations

- added a new parameter in Edit -> Preferences -> CNCJob named Annotation Size; it controls the size of the font used for annotations
- made visibility change threaded in FlatCAMObj()
This commit is contained in:
Marius Stanciu
2019-06-03 22:59:45 +03:00
parent 2a30101bb0
commit f06fec12ea
6 changed files with 120 additions and 29 deletions

View File

@@ -339,13 +339,18 @@ class FlatCAMObj(QtCore.QObject):
@visible.setter
def visible(self, value):
self.shapes.visible = value
log.debug("FlatCAMObj.visible()")
# Not all object types has annotations
try:
self.annotation.visible = value
except Exception as e:
pass
def worker_task(app_obj):
app_obj.shapes.visible = value
# Not all object types has annotations
try:
app_obj.annotation.visible = value
except Exception as e:
pass
self.app.worker_task.emit({'fcn': worker_task, 'params': [self]})
@property
def drawing_tolerance(self):