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

Method _build_view_toggle

dm_control/viewer/application.py:254–260  ·  view source on GitHub ↗
(self, view, location)

Source from the content-addressed store, hash-verified

252 self._viewer.zoom_to_scene()
253
254 def _build_view_toggle(self, view, location):
255 def toggle():
256 if view in self._viewer_layout:
257 self._viewer_layout.remove(view)
258 else:
259 self._viewer_layout.add(view, location)
260 return toggle
261
262 def _tick(self):
263 """Handle GUI events until the main window is closed."""

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected