You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my_canvas = Canvas()
my_canvas['rect'] = Rect(-100, -100, 200, 200)
my_canvas['rect'].color = "red" #runtime error that.color does not exist
my_canvas.show()
Produces:
['Traceback (most recent call last):', ' File "/home/ede/tools/miniconda3/envs/opensesame-py3/lib/python3.11/site-packages/libopensesame/inline_script.py", line 84, in run', ' self.workspace._exec(self.crun)', ' File "/home/ede/tools/miniconda3/envs/opensesame-py3/lib/python3.11/site-packages/libopensesame/base_python_workspace.py", line 99, in _exec', ' exec(bytecode, self._globals) # __ignore_traceback__', ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^', ' File "<string>", line 10, in <module>', ' File "/home/ede/tools/miniconda3/envs/opensesame-py3/lib/python3.11/site-packages/openexp/_canvas/_element/element.py", line 232, in _setter', ' val = color(self.experiment, val)', ' ^^^^^', "NameError: name 'color' is not defined"]
['NoneType: None']
Error: PythonError
The text was updated successfully, but these errors were encountered:
See forum:
To reproduce:
Produces:
The text was updated successfully, but these errors were encountered: