MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / set_title

Method set_title

dm_control/viewer/gui/glfw_gui.py:228–235  ·  view source on GitHub ↗

Sets the window title. Args: title: A string, title of the window.

(self, title)

Source from the content-addressed store, hash-verified

226 return self._mouse
227
228 def set_title(self, title):
229 """Sets the window title.
230
231 Args:
232 title: A string, title of the window.
233 """
234 with self._context.make_current() as ctx:
235 ctx.call(glfw.set_window_title, self._context.window, title)
236
237 def set_full_screen(self, enable):
238 """Expands the main application window to full screen or minimizes it.

Callers 1

test_setting_titleMethod · 0.80

Calls 2

make_currentMethod · 0.80
callMethod · 0.45

Tested by 1

test_setting_titleMethod · 0.64