]> granicus.if.org Git - python/commitdiff
Put support for a cnf dictionary back in, since it is still supported
authorGuido van Rossum <guido@python.org>
Wed, 12 Feb 1997 16:49:57 +0000 (16:49 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Feb 1997 16:49:57 +0000 (16:49 +0000)
by all true Tkinter widgets.  (Not that I *like* this module -- it
stinks, but until I have something better, I can't nuke it.)

Lib/lib-tk/ScrolledText.py
Lib/tkinter/ScrolledText.py

index cf6b2f13ff557790b53670e20a3607c823649bd5..4a67f369a2daaf69cfa7239b6e48fd203b9aeec0 100644 (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':
index cf6b2f13ff557790b53670e20a3607c823649bd5..4a67f369a2daaf69cfa7239b6e48fd203b9aeec0 100755 (executable)
@@ -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':