Skip to content

Commit 39b460a

Browse files
committed
Added window title optional parameter
1 parent e78fc81 commit 39b460a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mujoco_viewer/mujoco_viewer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class MujocoViewer:
11-
def __init__(self, model, data, width=None, height=None):
11+
def __init__(self, model, data, title="mujoco-python-viewer", width=None, height=None):
1212
self.model = model
1313
self.data = data
1414

@@ -47,7 +47,7 @@ def __init__(self, model, data, width=None, height=None):
4747
_, height = glfw.get_video_mode(glfw.get_primary_monitor()).size
4848

4949
self.window = glfw.create_window(
50-
width, height, "mujoco-python-viewer", None, None)
50+
width, height, title, None, None)
5151
glfw.make_context_current(self.window)
5252
glfw.swap_interval(1)
5353

0 commit comments

Comments
 (0)