Construct a frame widget with the parent MASTER. Valid option names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.
(self, master=None, cnf={}, **kw)
| 3406 | """Frame widget which may contain other widgets and can have a 3D border.""" |
| 3407 | |
| 3408 | def __init__(self, master=None, cnf={}, **kw): |
| 3409 | """Construct a frame widget with the parent MASTER. |
| 3410 | |
| 3411 | Valid option names: background, bd, bg, borderwidth, class, |
| 3412 | colormap, container, cursor, height, highlightbackground, |
| 3413 | highlightcolor, highlightthickness, relief, takefocus, visual, width.""" |
| 3414 | cnf = _cnfmerge((cnf, kw)) |
| 3415 | extra = () |
| 3416 | if 'class_' in cnf: |
| 3417 | extra = ('-class', cnf['class_']) |
| 3418 | del cnf['class_'] |
| 3419 | elif 'class' in cnf: |
| 3420 | extra = ('-class', cnf['class']) |
| 3421 | del cnf['class'] |
| 3422 | Widget.__init__(self, master, 'frame', cnf, {}, extra) |
| 3423 | |
| 3424 | |
| 3425 | class Label(Widget): |