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

Method grid_anchor

Lib/tkinter/__init__.py:1943–1948  ·  view source on GitHub ↗

The anchor value controls how to place the grid within the container widget when no row/column has any weight. The default anchor is nw.

(self, anchor=None)

Source from the content-addressed store, hash-verified

1941 # Grid methods that apply to the container widget
1942
1943 def grid_anchor(self, anchor=None): # new in Tk 8.5
1944 """The anchor value controls how to place the grid within the
1945 container widget when no row/column has any weight.
1946
1947 The default anchor is nw."""
1948 self.tk.call('grid', 'anchor', self._w, anchor)
1949
1950 anchor = grid_anchor
1951

Callers 2

tearDownMethod · 0.80
test_grid_anchorMethod · 0.80

Calls 1

callMethod · 0.45

Tested by 2

tearDownMethod · 0.64
test_grid_anchorMethod · 0.64