MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / Button

Class Button

tools/python-3.11.9-amd64/Lib/tkinter/ttk.py:566–587  ·  view source on GitHub ↗

Ttk Button widget, displays a textual label and/or image, and evaluates a command when pressed.

Source from the content-addressed store, hash-verified

564
565
566class Button(Widget):
567 """Ttk Button widget, displays a textual label and/or image, and
568 evaluates a command when pressed."""
569
570 def __init__(self, master=None, **kw):
571 """Construct a Ttk Button widget with the parent master.
572
573 STANDARD OPTIONS
574
575 class, compound, cursor, image, state, style, takefocus,
576 text, textvariable, underline, width
577
578 WIDGET-SPECIFIC OPTIONS
579
580 command, default, width
581 """
582 Widget.__init__(self, master, "ttk::button", kw)
583
584
585 def invoke(self):
586 """Invokes the command associated with the button."""
587 return self.tk.call(self._w, "invoke")
588
589
590class Checkbutton(Widget):

Callers 15

dialog.pyFile · 0.90
__init__Method · 0.90
_multistatus_barFunction · 0.90
_dyn_option_menuFunction · 0.90
create_action_buttonsMethod · 0.90
create_page_highlightMethod · 0.90
create_page_keysMethod · 0.90
create_frame_helpMethod · 0.90
create_widgetsMethod · 0.90
__init__Method · 0.90
_grep_dialogFunction · 0.90
make_buttonMethod · 0.90

Calls

no outgoing calls