AutoHideScrollbar¶
-
class
ttkwidgets.
AutoHideScrollbar
(master=None, **kwargs)[source]¶ Bases:
ttk.Scrollbar
Scrollbar that automatically hides when not needed.
-
__init__
(master=None, **kwargs)[source]¶ Create a scrollbar.
Parameters: - master (widget) – master widget
- kwargs – options to be passed on to the
ttk.Scrollbar
initializer
-
grid
(**kw)[source]¶ Position a widget in the parent widget in a grid.
Parameters: - column (int) – use cell identified with given column (starting with 0)
- columnspan (int) – this widget will span several columns
- in_ (widget) – widget to use as container
- ipadx (int) – add internal padding in x direction
- ipady (int) – add internal padding in y direction
- padx (int) – add padding in x direction
- pady (int) – add padding in y irection
- row (int) – use cell identified with given row (starting with 0)
- rowspan (int) – this widget will span several rows
- sticky (str) – “n”, “s”, “e”, “w” or combinations: if cell is larger on which sides will this widget stick to the cell boundary
-
pack
(**kw)[source]¶ Pack a widget in the parent widget.
Parameters: - after (widget) – pack it after you have packed widget
- anchor (str) – position anchor according to given direction (“n”, “s”, “e”, “w” or combinations)
- before (widget) – pack it before you will pack widget
- expand (bool) – expand widget if parent size grows
- fill (str) – “none” or “x” or “y” or “both”: fill widget if widget grows
- in_ (widget) – widget to use as container
- ipadx (int) – add internal padding in x direction
- ipady (int) – add internal padding in y direction
- padx (int) – add padding in x direction
- pady (int) – add padding in y irection
- side (str) – “top” (default), “bottom”, “left” or “right”: where to add this widget
-
place
(**kw)[source]¶ Place a widget in the parent widget.
Parameters: - in_ (widget) – master relative to which the widget is placed
- x (int) – locate anchor of this widget at position x of master
- y (int) – locate anchor of this widget at positiony of master
- relx (float) – locate anchor of this widget between 0 and 1 relative to width of master (1 is right edge)
- rely (float) – locate anchor of this widget between 0 and 1 relative to height of master (1 is bottom edge)
- anchor (str) – position anchor according to given direction (“n”, “s”, “e”, “w” or combinations)
- width (int) – width of this widget in pixel
- height (int) – height of this widget in pixel
- relwidth (float) – width of this widget between 0.0 and 1.0 relative to width of master (1.0 is the same width as the master)
- relheight (float) – height of this widget between 0.0 and 1.0 relative to height of master (1.0 is the same height as the master)
- bordermode (str) – “inside” or “outside”: whether to take border width of master widget into account
-