Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ Optionally, ``viewer.launch_passive`` accepts the following keyword arguments.

def key_callback(keycode):
if chr(keycode) == ' ':
nonlocal paused
global paused
paused = not paused

...
Expand All @@ -242,7 +242,7 @@ Optionally, ``viewer.launch_passive`` accepts the following keyword arguments.
...
if not paused:
mujoco.mj_step(m, d)
viewer.sync()
viewer.sync()
...

- ``show_left_ui`` and ``show_right_ui``: Boolean arguments indicating whether UI panels should be visible
Expand Down