diff --git a/python/mujoco/mjpython/mjpython.mm b/python/mujoco/mjpython/mjpython.mm index 25c6dc33..e2b5d92d 100644 --- a/python/mujoco/mjpython/mjpython.mm +++ b/python/mujoco/mjpython/mjpython.mm @@ -115,12 +115,27 @@ class _MjPythonImpl(mujoco.viewer._MjPythonBase): self._termination = self.__class__.NOT_TERMINATED self._busy = False - def launch_on_ui_thread(self, model, data, handle_return, key_callback): + def launch_on_ui_thread( + self, + model, + data, + handle_return, + key_callback, + show_left_ui, + show_right_ui, + ): with self._cond: if self._busy or self._task is not None: raise RuntimeError('another MuJoCo viewer is already open') else: - self._task = (model, data, handle_return, key_callback) + self._task = ( + model, + data, + handle_return, + key_callback, + show_left_ui, + show_right_ui, + ) self._cond.notify() def terminate(self):