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)
| 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.""" |