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

Method shape

dm_control/viewer/gui/glfw_gui.py:207–210  ·  view source on GitHub ↗

Returns a tuple with the shape of the window, (width, height).

(self)

Source from the content-addressed store, hash-verified

205
206 @property
207 def shape(self):
208 """Returns a tuple with the shape of the window, (width, height)."""
209 with self._context.make_current() as ctx:
210 return ctx.call(glfw.get_framebuffer_size, self._context.window)
211
212 @property
213 def position(self):

Callers 1

__call__Method · 0.45

Calls 2

make_currentMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected