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

Method __init__

Lib/tkinter/__init__.py:3452–3460  ·  view source on GitHub ↗

Construct a listbox widget with the parent MASTER. Valid option names: background, bd, bg, borderwidth, cursor, exportselection, fg, font, foreground, height, highlightbackground, highlightcolor, highlightthickness, relief, selectbackground, selectborderwidth, select

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

Source from the content-addressed store, hash-verified

3450 """Listbox widget which can display a list of strings."""
3451
3452 def __init__(self, master=None, cnf={}, **kw):
3453 """Construct a listbox widget with the parent MASTER.
3454
3455 Valid option names: background, bd, bg, borderwidth, cursor,
3456 exportselection, fg, font, foreground, height, highlightbackground,
3457 highlightcolor, highlightthickness, relief, selectbackground,
3458 selectborderwidth, selectforeground, selectmode, setgrid, takefocus,
3459 width, xscrollcommand, yscrollcommand, listvariable."""
3460 Widget.__init__(self, master, 'listbox', cnf, kw)
3461
3462 def activate(self, index):
3463 """Activate item identified by INDEX."""

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected