We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f16ebfd commit 394c99eCopy full SHA for 394c99e
vpython/vpython.py
@@ -2934,7 +2934,10 @@ def __init__(self, **args):
2934
baseObj._canvas_constructing = False
2935
2936
def follow(self, obj): ## should allow a function also
2937
- self.addmethod('follow', obj.idx)
+ if obj is None:
2938
+ self.addmethod('follow', 'None')
2939
+ else:
2940
+ self.addmethod('follow', obj.idx)
2941
2942
def select(self):
2943
canvas.selected = self
0 commit comments