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

Method close

dm_control/viewer/gui/glfw_gui.py:307–311  ·  view source on GitHub ↗

Closes the window and releases associated resources.

(self)

Source from the content-addressed store, hash-verified

305 glfw.poll_events()
306
307 def close(self):
308 """Closes the window and releases associated resources."""
309 if self._context is not None:
310 self._context.free()
311 self._context = None
312
313 def _handle_file_drop(self, window, paths):
314 """Handles events of user dropping files onto the window.

Callers 8

freeMethod · 0.95
launchMethod · 0.45
test_closeMethod · 0.45
createFunction · 0.45
mainFunction · 0.45
_download_into_fileFunction · 0.45

Calls 1

freeMethod · 0.45

Tested by 2

test_closeMethod · 0.36