summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-07-06 21:15:27 (GMT)
committerGuido van Rossum <guido@python.org>1994-07-06 21:15:27 (GMT)
commit5179236a41994d3e2edc7dde87901b0ab3545b86 (patch)
tree6dd7fe85c75451db2b7f672a8ad305668b4827f0 /Lib/lib-tk
parent2a39031006236a3d04dfd28c9d10f9edd203924b (diff)
downloadcpython-5179236a41994d3e2edc7dde87901b0ab3545b86.zip
cpython-5179236a41994d3e2edc7dde87901b0ab3545b86.tar.gz
cpython-5179236a41994d3e2edc7dde87901b0ab3545b86.tar.bz2
Added bind and tag_config methods; minor lay-out change
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/ScrolledText.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/lib-tk/ScrolledText.py b/Lib/lib-tk/ScrolledText.py
index ed1cc56..4092d4f 100644
--- a/Lib/lib-tk/ScrolledText.py
+++ b/Lib/lib-tk/ScrolledText.py
@@ -21,14 +21,14 @@ class ScrolledText(Pack, Place):
del cnf[Pack]
self.vbar = Scrollbar(self.frame, {})
self.vbar.pack({'side': 'right', 'fill': 'y'})
- cnf[Pack] = {'side': 'left', 'fill': 'both',
- 'expand': 'yes'}
+ cnf[Pack] = {'side': 'left', 'fill': 'both', 'expand': 'yes'}
self.text = Text(self.frame, cnf)
self.text['yscrollcommand'] = (self.vbar, 'set')
self.vbar['command'] = (self.text, 'yview')
self.insert = self.text.insert
# XXX should do all Text methods...
self.pack = self.frame.pack
+ self.bind = self.text.bind
self.forget = self.frame.forget
self.delete = self.text.delete
self.insert = self.text.insert
@@ -38,6 +38,7 @@ class ScrolledText(Pack, Place):
self.tag_add = self.text.tag_add
self.tag_delete = self.text.tag_delete
self.tag_remove = self.text.tag_remove
+ self.tag_config = self.text.tag_config
self.yview = self.text.yview
self.yview_pickplace = self.text.yview_pickplace
self.tk = master.tk