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

Method __init__

Lib/tkinter/__init__.py:3273–3283  ·  view source on GitHub ↗

Construct a checkbutton widget with the parent MASTER. Valid option names: activebackground, activeforeground, anchor, background, bd, bg, bitmap, borderwidth, command, cursor, disabledforeground, fg, font, foreground, height, highlightbackground, highlightcolor, hig

(self, master=None, cnf={}, **kw)

Source from the content-addressed store, hash-verified

3271 """Checkbutton widget which is either in on- or off-state."""
3272
3273 def __init__(self, master=None, cnf={}, **kw):
3274 """Construct a checkbutton widget with the parent MASTER.
3275
3276 Valid option names: activebackground, activeforeground, anchor,
3277 background, bd, bg, bitmap, borderwidth, command, cursor,
3278 disabledforeground, fg, font, foreground, height,
3279 highlightbackground, highlightcolor, highlightthickness, image,
3280 indicatoron, justify, offvalue, onvalue, padx, pady, relief,
3281 selectcolor, selectimage, state, takefocus, text, textvariable,
3282 underline, variable, width, wraplength."""
3283 Widget.__init__(self, master, 'checkbutton', cnf, kw)
3284
3285 def _setup(self, master, cnf):
3286 # Because Checkbutton defaults to a variable with the same name as

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected