MCPcopy Index your code
hub / github.com/RustPython/RustPython / grid_bbox

Method grid_bbox

Lib/tkinter/__init__.py:1896–1913  ·  view source on GitHub ↗

Return a tuple of integer coordinates for the bounding box of this widget controlled by the geometry manager grid. If COLUMN, ROW is given the bounding box applies from the cell with row and column 0 to the specified cell. If COL2 and ROW2 are given the bounding box

(self, column=None, row=None, col2=None, row2=None)

Source from the content-addressed store, hash-verified

1894 anchor = grid_anchor
1895
1896 def grid_bbox(self, column=None, row=None, col2=None, row2=None):
1897 """Return a tuple of integer coordinates for the bounding
1898 box of this widget controlled by the geometry manager grid.
1899
1900 If COLUMN, ROW is given the bounding box applies from
1901 the cell with row and column 0 to the specified
1902 cell. If COL2 and ROW2 are given the bounding box
1903 starts at that cell.
1904
1905 The returned integers specify the offset of the upper left
1906 corner in the master widget and the width and height.
1907 """
1908 args = ('grid', 'bbox', self._w)
1909 if column is not None and row is not None:
1910 args = args + (column, row)
1911 if col2 is not None and row2 is not None:
1912 args = args + (col2, row2)
1913 return self._getints(self.tk.call(*args)) or None
1914
1915 bbox = grid_bbox
1916

Callers

nothing calls this directly

Calls 2

_getintsMethod · 0.95
callMethod · 0.45

Tested by

no test coverage detected