- 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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user