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

Method __init__

Lib/tkinter/ttk.py:513–534  ·  view source on GitHub ↗

Constructs a Ttk Widget with the parent master. STANDARD OPTIONS class, cursor, takefocus, style SCROLLABLE WIDGET OPTIONS xscrollcommand, yscrollcommand LABEL WIDGET OPTIONS text, textvariable, underline, image, compound, width

(self, master, widgetname, kw=None)

Source from the content-addressed store, hash-verified

511 """Base class for Tk themed widgets."""
512
513 def __init__(self, master, widgetname, kw=None):
514 """Constructs a Ttk Widget with the parent master.
515
516 STANDARD OPTIONS
517
518 class, cursor, takefocus, style
519
520 SCROLLABLE WIDGET OPTIONS
521
522 xscrollcommand, yscrollcommand
523
524 LABEL WIDGET OPTIONS
525
526 text, textvariable, underline, image, compound, width
527
528 WIDGET STATES
529
530 active, disabled, focus, pressed, selected, background,
531 readonly, alternate, invalid
532 """
533 master = setup_master(master)
534 tkinter.Widget.__init__(self, master, widgetname, kw=kw)
535
536
537 def identify(self, x, y):

Callers

nothing calls this directly

Calls 2

setup_masterFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected