Computer: Python Tkinter Button
Computer: Python Tkinter Button
PARAMETERS
Master - This represents the parent window.
8 height
Options − Here is the list of most commonly
used options for this widget. These options - Height of the button in text
can be used as key-value pairs separated by lines (for textual buttons) or
commas. pixels (for images).
SR# Option & Description 9 highlightcolor
1 activebackground - The color of the focus
- Background color when the highlight when the widget has
button is under the cursor. focus.
2 activeforeground 10 image
3 bd 11 justify
15 state
17 width
B.pack()
- Width of the button in letters
top.mainloop()
(if displaying text) or pixels (if
displaying an image).
18 wraplength
METHODS
flash()
2
3