Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Programmatically change GUI size in mujoco_viewer / mujoco_viewer_passive #2338

Open
pab47 opened this issue Jan 8, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@pab47
Copy link

pab47 commented Jan 8, 2025

The feature, motivation and pitch

The GUI that opens up when launching the viewer is set at about 960 x 540 (approx). I can manually resize it once it opens up. But this is getting tedious as I have to keep doing it every single time.

Is it possible to set this up programmatically?

In the past, I could do with something like this: window = glfw.create_window(800, 600, "Demo", None, None), but it does not look like glfw's handle is exposed in the viewer.py which makes it impossible to use the functions, set_window_size and get_window_size.

Alternatives

  1. resizing the window manually (works but tedious)
  2. Tried adding glfw.create_window in viewer.py (does not work)

Additional context

No response

@pab47 pab47 added the enhancement New feature or request label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant