grapa.frontend.widgets_custom.ButtonVar
- class grapa.frontend.widgets_custom.ButtonVar(frame, text, command, **kwargs)
Bases:
Buttonreplacement for tk.Button, with embedded tk.Stringvar for the text
- __init__(frame, text, command, **kwargs)
Construct a button widget with the parent MASTER.
STANDARD OPTIONS
activebackground, activeforeground, anchor, background, bitmap, borderwidth, cursor, disabledforeground, font, foreground highlightbackground, highlightcolor, highlightthickness, image, justify, padx, pady, relief, repeatdelay, repeatinterval, takefocus, text, textvariable, underline, wraplength
WIDGET-SPECIFIC OPTIONS
command, compound, default, height, overrelief, state, width
Methods
__init__(frame, text, command, **kwargs)Construct a button widget with the parent MASTER.
get()Returns the current value of the ButtonVar.
set(text)Sets the current value of the ButtonVar.
- get()
Returns the current value of the ButtonVar.
- set(text)
Sets the current value of the ButtonVar.