MCPcopy Index your code
hub / github.com/python/cpython / grid_location

Method grid_location

Lib/tkinter/__init__.py:2018–2024  ·  view source on GitHub ↗

Return a tuple of column and row which identify the cell at which the pixel at position X and Y inside the container widget is located.

(self, x, y)

Source from the content-addressed store, hash-verified

2016 columnconfigure = grid_columnconfigure
2017
2018 def grid_location(self, x, y):
2019 """Return a tuple of column and row which identify the cell
2020 at which the pixel at position X and Y inside the container
2021 widget is located."""
2022 return self._getints(
2023 self.tk.call(
2024 'grid', 'location', self._w, x, y)) or None
2025
2026 def grid_propagate(self, flag=_noarg_):
2027 """Set or get the status for propagation of geometry information.

Callers 1

test_grid_locationMethod · 0.80

Calls 2

_getintsMethod · 0.95
callMethod · 0.45

Tested by 1

test_grid_locationMethod · 0.64