MCPcopy Index your code
hub / github.com/python/cpython / Button

Class Button

Lib/tkinter/ttk.py:573–594  ·  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

571
572
573class 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
597class Checkbutton(Widget):

Callers 15

dialog.pyFile · 0.90
__init__Method · 0.90
__init__Method · 0.90
buttonboxMethod · 0.90
testFunction · 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

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…