mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
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:
parent
50b82e8e18
commit
17ca992818
2 changed files with 6 additions and 2 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue