Construct a frame widget with the parent MASTER. Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.
(self, master=None, cnf={}, **kw)
| 3325 | """Frame widget which may contain other widgets and can have a 3D border.""" |
| 3326 | |
| 3327 | def __init__(self, master=None, cnf={}, **kw): |
| 3328 | """Construct a frame widget with the parent MASTER. |
| 3329 | |
| 3330 | Valid resource names: background, bd, bg, borderwidth, class, |
| 3331 | colormap, container, cursor, height, highlightbackground, |
| 3332 | highlightcolor, highlightthickness, relief, takefocus, visual, width.""" |
| 3333 | cnf = _cnfmerge((cnf, kw)) |
| 3334 | extra = () |
| 3335 | if 'class_' in cnf: |
| 3336 | extra = ('-class', cnf['class_']) |
| 3337 | del cnf['class_'] |
| 3338 | elif 'class' in cnf: |
| 3339 | extra = ('-class', cnf['class']) |
| 3340 | del cnf['class'] |
| 3341 | Widget.__init__(self, master, 'frame', cnf, {}, extra) |
| 3342 | |
| 3343 | |
| 3344 | class Label(Widget): |