summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-07-06 09:28:21 (GMT)
committerGuido van Rossum <guido@python.org>1994-07-06 09:28:21 (GMT)
commita3cd357771f15b4eb3984ca13a618bae9deae1a1 (patch)
tree7e03b2eff09da346a1b5e8a1b88b4f9086e7cf30 /Lib
parent639b8b8d9a11dd7d65442965a8686b58ea0f6d28 (diff)
downloadcpython-a3cd357771f15b4eb3984ca13a618bae9deae1a1.zip
cpython-a3cd357771f15b4eb3984ca13a618bae9deae1a1.tar.gz
cpython-a3cd357771f15b4eb3984ca13a618bae9deae1a1.tar.bz2
* ScrolledText.py: added some more methods of Text (This should
really be done differently, e.g. by deriving from the Text class.)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib-tk/ScrolledText.py10
-rwxr-xr-xLib/tkinter/ScrolledText.py10
2 files changed, 20 insertions, 0 deletions
diff --git a/Lib/lib-tk/ScrolledText.py b/Lib/lib-tk/ScrolledText.py
index 9effae0..ed1cc56 100644
--- a/Lib/lib-tk/ScrolledText.py
+++ b/Lib/lib-tk/ScrolledText.py
@@ -30,6 +30,16 @@ class ScrolledText(Pack, Place):
# XXX should do all Text methods...
self.pack = self.frame.pack
self.forget = self.frame.forget
+ self.delete = self.text.delete
+ self.insert = self.text.insert
+ self.index = self.text.index
+ self.get = self.text.get
+ self.mark_set = self.text.mark_set
+ self.tag_add = self.text.tag_add
+ self.tag_delete = self.text.tag_delete
+ self.tag_remove = self.text.tag_remove
+ self.yview = self.text.yview
+ self.yview_pickplace = self.text.yview_pickplace
self.tk = master.tk
def __str__(self):
return str(self.frame)
diff --git a/Lib/tkinter/ScrolledText.py b/Lib/tkinter/ScrolledText.py
index 9effae0..ed1cc56 100755
--- a/Lib/tkinter/ScrolledText.py
+++ b/Lib/tkinter/ScrolledText.py
@@ -30,6 +30,16 @@ class ScrolledText(Pack, Place):
# XXX should do all Text methods...
self.pack = self.frame.pack
self.forget = self.frame.forget
+ self.delete = self.text.delete
+ self.insert = self.text.insert
+ self.index = self.text.index
+ self.get = self.text.get
+ self.mark_set = self.text.mark_set
+ self.tag_add = self.text.tag_add
+ self.tag_delete = self.text.tag_delete
+ self.tag_remove = self.text.tag_remove
+ self.yview = self.text.yview
+ self.yview_pickplace = self.text.yview_pickplace
self.tk = master.tk
def __str__(self):
return str(self.frame)