Ttk Button widget, displays a textual label and/or image, and evaluates a command when pressed.
| 571 | |
| 572 | |
| 573 | class Button(Widget): |
| 574 | """Ttk Button widget, displays a textual label and/or image, and |
| 575 | evaluates a command when pressed.""" |
| 576 | |
| 577 | def __init__(self, master=None, **kw): |
| 578 | """Construct a Ttk Button widget with the parent master. |
| 579 | |
| 580 | STANDARD OPTIONS |
| 581 | |
| 582 | class, compound, cursor, image, state, style, takefocus, |
| 583 | text, textvariable, underline, width |
| 584 | |
| 585 | WIDGET-SPECIFIC OPTIONS |
| 586 | |
| 587 | command, default, width |
| 588 | """ |
| 589 | Widget.__init__(self, master, "ttk::button", kw) |
| 590 | |
| 591 | |
| 592 | def invoke(self): |
| 593 | """Invokes the command associated with the button.""" |
| 594 | return self.tk.call(self._w, "invoke") |
| 595 | |
| 596 | |
| 597 | class Checkbutton(Widget): |
no outgoing calls
searching dependent graphs…