Button
The Button gadget is a standard Tkinter gadget, which is utilized for different sorts of buttons. A button is a gadget that is intended for the client to connect with (i.e., assuming a mouse click presses the button, some activity may be begun). They can likewise contain text and pictures like names. While marks can show text in different textual styles, a button can show text in a solitary text style. The text of a button can traverse more than one line.
- bg - The ordinary foundation variety showed behind the mark and marker.
- relief - The kind of the boundary of the edge. Its default esteem is set to FLAT. We can set it to some other styles, i.e., FLAT, RAISED, SUNKEN, GROOVE, RIDGE.
- bd - The size of the line in pixels. Default is 2 pixels.
- textual style - text style to be utilized for the button's mark.
- picture - Instead of text, Image to be shown on the button.
- command - Function or strategy to be called when the button is clicked. Note: we just need to compose the capacity or strategy name in the order trait. We shouldn't call the capacity in the trait (i.e., If the capacity is name(), we simply need to compose command=name).

0 Comments