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

Method grid_configure

Lib/tkinter/__init__.py:2762–2779  ·  view source on GitHub ↗

Position a widget in the parent widget in a grid. Use as options: column=number - use cell identified with given column (starting with 0) columnspan=number - this widget will span several columns in=container - use the container widget to contain this widget in_=conta

(self, cnf={}, **kw)

Source from the content-addressed store, hash-verified

2760 # Thanks to Masazumi Yoshikawa (yosikawa@isi.edu)
2761
2762 def grid_configure(self, cnf={}, **kw):
2763 """Position a widget in the parent widget in a grid. Use as options:
2764 column=number - use cell identified with given column (starting with 0)
2765 columnspan=number - this widget will span several columns
2766 in=container - use the container widget to contain this widget
2767 in_=container - see 'in' option description
2768 ipadx=amount - add internal padding in x direction
2769 ipady=amount - add internal padding in y direction
2770 padx=amount - add padding in x direction
2771 pady=amount - add padding in y direction
2772 row=number - use cell identified with given row (starting with 0)
2773 rowspan=number - this widget will span several rows
2774 sticky=NSEW - if cell is larger on which sides will this
2775 widget stick to the cell boundary
2776 """
2777 self.tk.call(
2778 ('grid', 'configure', self._w)
2779 + self._options(cnf, kw))
2780
2781 grid = configure = config = grid_configure
2782 bbox = grid_bbox = Misc.grid_bbox

Calls 2

callMethod · 0.45
_optionsMethod · 0.45