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

Method place_configure

Lib/tkinter/__init__.py:2703–2733  ·  view source on GitHub ↗

Place a widget in the parent widget. Use as options: in=container - the container widget relative to which this widget is placed in_=container - see 'in' option description x=amount - locate anchor of this widget at position x of the

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

Source from the content-addressed store, hash-verified

2701 Base class to use the methods place_* in every widget."""
2702
2703 def place_configure(self, cnf={}, **kw):
2704 """Place a widget in the parent widget. Use as options:
2705 in=container - the container widget relative to which this widget is
2706 placed
2707 in_=container - see 'in' option description
2708 x=amount - locate anchor of this widget at position x of the
2709 container widget
2710 y=amount - locate anchor of this widget at position y of the
2711 container widget
2712 relx=amount - locate anchor of this widget between 0.0 and 1.0
2713 relative to width of the container widget (1.0 is
2714 right edge)
2715 rely=amount - locate anchor of this widget between 0.0 and 1.0
2716 relative to height of the container widget (1.0 is
2717 bottom edge)
2718 anchor=NSEW (or subset) - position anchor according to given
2719 direction
2720 width=amount - width of this widget in pixel
2721 height=amount - height of this widget in pixel
2722 relwidth=amount - width of this widget between 0.0 and 1.0
2723 relative to width of the container widget (1.0 is
2724 the same width as the container widget)
2725 relheight=amount - height of this widget between 0.0 and 1.0
2726 relative to height of the container widget (1.0
2727 is the same height as the container widget)
2728 bordermode="inside" or "outside" - whether to take border width of
2729 the container widget into account
2730 """
2731 self.tk.call(
2732 ('place', 'configure', self._w)
2733 + self._options(cnf, kw))
2734
2735 place = configure = config = place_configure
2736

Calls 2

callMethod · 0.45
_optionsMethod · 0.45