next up previous contents index
Next: Canvas Up: Widgets Previous: Widgets   Contents   Index


Button

The following keyword arguments are available for creating an instance of the button and for configuring it

activebackground background of the active area
activeforeground foreground color for active widgets (when the mouse cursor is over the widget)
anchor specify the alignment of text/image drawn on the widget, one of (:n :w :s :e :nw :sw :se :ne) with :nw designating the top left corner
background background color of the widget
bitmap the bitmap to display on the widget, the display is affected by the options 'anchor' and 'justify'
borderwidth width of the border around the widget in pixels
command function to call when the action of the widget is executed
compound

cursor mouse pointer to display on the widget (valid values are listed in *cursors*)
default

disabledforeground

font font to use to display text on the widget
foreground foreground color of the widget
height height of the widget
highlightbackground

highlightcolor

highlightthickness

image the image to display on the widget, the display is affected by the options 'anchor' and 'justify'
justify justification of the text on the widget
overrelief relief of the border, when the mouse is over the widget
padx padding around text displayed on the widget
pady padding around text displayed on the widget
relief relief of the widgets border (raised, sunken, ridge, groove)
repeatdelay

repeatinterval

state

takefocus if true, the widget can take the focus
textvariable

underline

width width of the widget
wraplength


next up previous contents index
Next: Canvas Up: Widgets Previous: Widgets   Contents   Index
Peter Herth 2006-01-29