summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk/ScrolledText.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-23 18:31:14 (GMT)
committerFred Drake <fdrake@acm.org>2000-10-23 18:31:14 (GMT)
commitd038ca830fd5a6bafbd24b70eb71aeae83d362d3 (patch)
tree1a1febed0b11a25efb04bc50be91d4be3003e497 /Lib/lib-tk/ScrolledText.py
parent16f6329e6153c4b92f2175a5560e372a762befe6 (diff)
downloadcpython-d038ca830fd5a6bafbd24b70eb71aeae83d362d3.zip
cpython-d038ca830fd5a6bafbd24b70eb71aeae83d362d3.tar.gz
cpython-d038ca830fd5a6bafbd24b70eb71aeae83d362d3.tar.bz2
Make reindent.py happy (convert everything to 4-space indents!).
Diffstat (limited to 'Lib/lib-tk/ScrolledText.py')
-rw-r--r--Lib/lib-tk/ScrolledText.py44
1 files changed, 22 insertions, 22 deletions
diff --git a/Lib/lib-tk/ScrolledText.py b/Lib/lib-tk/ScrolledText.py
index 05b728a..866da3a 100644
--- a/Lib/lib-tk/ScrolledText.py
+++ b/Lib/lib-tk/ScrolledText.py
@@ -14,26 +14,26 @@ from Tkinter import *
from Tkinter import _cnfmerge
class ScrolledText(Text):
- def __init__(self, master=None, cnf=None, **kw):
- if cnf is None:
- cnf = {}
- if kw:
- cnf = _cnfmerge((cnf, kw))
- fcnf = {}
- for k in cnf.keys():
- if type(k) == ClassType or k == 'name':
- fcnf[k] = cnf[k]
- del cnf[k]
- self.frame = apply(Frame, (master,), fcnf)
- self.vbar = Scrollbar(self.frame, name='vbar')
- self.vbar.pack(side=RIGHT, fill=Y)
- cnf['name'] = 'text'
- apply(Text.__init__, (self, self.frame), cnf)
- self.pack(side=LEFT, fill=BOTH, expand=1)
- self['yscrollcommand'] = self.vbar.set
- self.vbar['command'] = self.yview
+ def __init__(self, master=None, cnf=None, **kw):
+ if cnf is None:
+ cnf = {}
+ if kw:
+ cnf = _cnfmerge((cnf, kw))
+ fcnf = {}
+ for k in cnf.keys():
+ if type(k) == ClassType or k == 'name':
+ fcnf[k] = cnf[k]
+ del cnf[k]
+ self.frame = apply(Frame, (master,), fcnf)
+ self.vbar = Scrollbar(self.frame, name='vbar')
+ self.vbar.pack(side=RIGHT, fill=Y)
+ cnf['name'] = 'text'
+ apply(Text.__init__, (self, self.frame), cnf)
+ self.pack(side=LEFT, fill=BOTH, expand=1)
+ self['yscrollcommand'] = self.vbar.set
+ self.vbar['command'] = self.yview
- # Copy Pack methods of self.frame -- hack!
- for m in Pack.__dict__.keys():
- if m[0] != '_' and m != 'config' and m != 'configure':
- setattr(self, m, getattr(self.frame, m))
+ # Copy Pack methods of self.frame -- hack!
+ for m in Pack.__dict__.keys():
+ if m[0] != '_' and m != 'config' and m != 'configure':
+ setattr(self, m, getattr(self.frame, m))