PyDocs

Nav

Graphical user interfaces with Tk

Button

tkinter

class
  • Button(master=None, cnf={}, **kw)
A Button widget displays a textual string, bitmap or image and invokes a command when the user presses it (by clicking mouse button 1 over the button or, when the button has focus, by pressing the space key). Inherits from Widget. In addition to the standard widget options, a button accepts the options documented in the Tk button manual page, such as command (the callback invoked when the button is pressed), textvariable, state and default.
Members of Button

f

flash
Flash the button by redisplaying it several times, alternating between the active and normal colors.

i

invoke
Invoke the command associated with the button, if there is one, and return its result, or an empty string if no command is associated with the button.
0 Examples
No examples for tkinter/Button.
See Also
No see-alsos for tkinter/Button
0 Notes
No notes for Button