summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-03 08:08:26 (GMT)
committerGuido van Rossum <guido@python.org>1994-08-03 08:08:26 (GMT)
commitd7b19488d75220eb8409845ad5d3f48d2dfa2193 (patch)
treecb8590c29b7b23e1cf715b7c8149e1af44278f7b /Lib/tkinter
parente2ca9bd1562224dfab4f6716a8faedf76ca59023 (diff)
downloadcpython-d7b19488d75220eb8409845ad5d3f48d2dfa2193.zip
cpython-d7b19488d75220eb8409845ad5d3f48d2dfa2193.tar.gz
cpython-d7b19488d75220eb8409845ad5d3f48d2dfa2193.tar.bz2
Use new packing and 'name' in cnf dict
Diffstat (limited to 'Lib/tkinter')
-rwxr-xr-xLib/tkinter/ScrolledText.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/tkinter/ScrolledText.py b/Lib/tkinter/ScrolledText.py
index 2683696..0261d90 100755
--- a/Lib/tkinter/ScrolledText.py
+++ b/Lib/tkinter/ScrolledText.py
@@ -17,14 +17,16 @@ class ScrolledText(Text):
def __init__(self, master=None, cnf={}):
cnf = _cnfmerge(cnf)
fcnf = {}
+ vcnf = {'name': 'vbar',
+ Pack: {'side': 'right', 'fill': 'y'},}
for k in cnf.keys():
- if type(k) == ClassType:
+ if type(k) == ClassType or k == 'name':
fcnf[k] = cnf[k]
del cnf[k]
self.frame = Frame(master, fcnf)
- self.vbar = Scrollbar(self.frame, {
- Pack: {'side': 'right', 'fill': 'y'}})
+ self.vbar = Scrollbar(self.frame, vcnf)
cnf[Pack] = {'side': 'left', 'fill': 'both', 'expand': 'yes'}
+ cnf['name'] = 'text'
Text.__init__(self, self.frame, cnf)
self['yscrollcommand'] = (self.vbar, 'set')
self.vbar['command'] = (self, 'yview')