MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / grid_bbox

Method grid_bbox

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:1795–1812  ·  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

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

Source from the content-addressed store, hash-verified

1793 anchor = grid_anchor
1794
1795 def grid_bbox(self, column=None, row=None, col2=None, row2=None):
1796 """Return a tuple of integer coordinates for the bounding
1797 box of this widget controlled by the geometry manager grid.
1798
1799 If COLUMN, ROW is given the bounding box applies from
1800 the cell with row and column 0 to the specified
1801 cell. If COL2 and ROW2 are given the bounding box
1802 starts at that cell.
1803
1804 The returned integers specify the offset of the upper left
1805 corner in the master widget and the width and height.
1806 """
1807 args = ('grid', 'bbox', self._w)
1808 if column is not None and row is not None:
1809 args = args + (column, row)
1810 if col2 is not None and row2 is not None:
1811 args = args + (col2, row2)
1812 return self._getints(self.tk.call(*args)) or None
1813
1814 bbox = grid_bbox
1815

Callers 1

test_grid_bboxMethod · 0.80

Calls 2

_getintsMethod · 0.95
callMethod · 0.80

Tested by 1

test_grid_bboxMethod · 0.64