Construct a listbox widget with the parent MASTER. Valid resource names: background, bd, bg, borderwidth, cursor, exportselection, fg, font, foreground, height, highlightbackground, highlightcolor, highlightthickness, relief, selectbackground, selectborderwidth, sele
(self, master=None, cnf={}, **kw)
| 3369 | """Listbox widget which can display a list of strings.""" |
| 3370 | |
| 3371 | def __init__(self, master=None, cnf={}, **kw): |
| 3372 | """Construct a listbox widget with the parent MASTER. |
| 3373 | |
| 3374 | Valid resource names: background, bd, bg, borderwidth, cursor, |
| 3375 | exportselection, fg, font, foreground, height, highlightbackground, |
| 3376 | highlightcolor, highlightthickness, relief, selectbackground, |
| 3377 | selectborderwidth, selectforeground, selectmode, setgrid, takefocus, |
| 3378 | width, xscrollcommand, yscrollcommand, listvariable.""" |
| 3379 | Widget.__init__(self, master, 'listbox', cnf, kw) |
| 3380 | |
| 3381 | def activate(self, index): |
| 3382 | """Activate item identified by INDEX.""" |