- make sure that the annotation shapes are deleted on creation of a new project

- added folder for the Russian translation
- made sure that visibility for TextGroup is set only if index is not None in VisPyVisuals.TextGroup.visible() setter
- RELEASE 8.918
This commit is contained in:
Marius Stanciu
2019-06-08 21:36:34 +03:00
parent 24f9de8c16
commit 5f972ab85e
4 changed files with 32 additions and 15 deletions

View File

@@ -437,12 +437,13 @@ class TextGroup(object):
:param value: bool
"""
self._visible = value
try:
self._collection.data[self._index]['visible'] = value
except KeyError:
print("VisPyVisuals.TextGroup.visible --> KeyError")
pass
self._collection.redraw()
if self._index:
try:
self._collection.data[self._index]['visible'] = value
except KeyError as e:
print("VisPyVisuals.TextGroup.visible --> KeyError --> %s" % str(e))
pass
self._collection.redraw()
class TextCollectionVisual(TextVisual):