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

Method position

dm_control/viewer/gui/glfw_gui.py:213–216  ·  view source on GitHub ↗

Returns a tuple with top-left window corner's coordinates, (x, y).

(self)

Source from the content-addressed store, hash-verified

211
212 @property
213 def position(self):
214 """Returns a tuple with top-left window corner's coordinates, (x, y)."""
215 with self._context.make_current() as ctx:
216 return ctx.call(glfw.get_window_pos, self._context.window)
217
218 @property
219 def keyboard(self):

Callers

nothing calls this directly

Calls 2

make_currentMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected