Put support for a cnf dictionary back in, since it is still supported

by all true Tkinter widgets.  (Not that I *like* this module -- it
stinks, but until I have something better, I can't nuke it.)
This commit is contained in:
Guido van Rossum 1997-02-12 16:49:57 +00:00
parent 50b82e8e18
commit 17ca992818
2 changed files with 6 additions and 2 deletions

View file

@ -14,7 +14,9 @@ from Tkinter import *
from Tkinter import _cnfmerge
class ScrolledText(Text):
def __init__(self, master=None, **cnf):
def __init__(self, master=None, cnf={}, **kw):
if kw:
cnf = _cnfmerge((cnf, kw))
fcnf = {}
for k in cnf.keys():
if type(k) == ClassType or k == 'name':