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

Method grid_bbox

Lib/tkinter/__init__.py:1952–1969  ·  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

1950 anchor = grid_anchor
1951
1952 def grid_bbox(self, column=None, row=None, col2=None, row2=None):
1953 """Return a tuple of integer coordinates for the bounding
1954 box of this widget controlled by the geometry manager grid.
1955
1956 If COLUMN, ROW is given the bounding box applies from
1957 the cell with row and column 0 to the specified
1958 cell. If COL2 and ROW2 are given the bounding box
1959 starts at that cell.
1960
1961 The returned integers specify the offset of the upper left
1962 corner in the container widget and the width and height.
1963 """
1964 args = ('grid', 'bbox', self._w)
1965 if column is not None and row is not None:
1966 args = args + (column, row)
1967 if col2 is not None and row2 is not None:
1968 args = args + (col2, row2)
1969 return self._getints(self.tk.call(*args)) or None
1970
1971 bbox = grid_bbox
1972

Callers 1

test_grid_bboxMethod · 0.80

Calls 2

_getintsMethod · 0.95
callMethod · 0.45

Tested by 1

test_grid_bboxMethod · 0.64