summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2001-07-13 17:44:06 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2001-07-13 17:44:06 (GMT)
commit233bf2c563cb0d0e4d711654cc59e82e38c6b12d (patch)
treece7e3ad75fae69967bf66cec2895d71a3b8fcc7d
parent4e32e7e56704800404fb1580c500e5455e939094 (diff)
downloadcpython-233bf2c563cb0d0e4d711654cc59e82e38c6b12d.zip
cpython-233bf2c563cb0d0e4d711654cc59e82e38c6b12d.tar.gz
cpython-233bf2c563cb0d0e4d711654cc59e82e38c6b12d.tar.bz2
py-cvs-rel2_1 (Rev 1.2) merge - whitespace normalization
-rw-r--r--Lib/idlelib/MultiScrolledLists.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/Lib/idlelib/MultiScrolledLists.py b/Lib/idlelib/MultiScrolledLists.py
index 32f6246..6c140df 100644
--- a/Lib/idlelib/MultiScrolledLists.py
+++ b/Lib/idlelib/MultiScrolledLists.py
@@ -10,7 +10,7 @@ from Separator import HSeparator
from ScrolledList import ScrolledList
class MultiScrolledLists:
-
+
def __init__(self, root, nlists=2):
assert nlists >= 1
self.root = root
@@ -51,17 +51,17 @@ class MultiScrolledLists:
self.fill(0)
# XXX one after_idle isn't enough; two are...
top.after_idle(self.call_pack_propagate_1)
-
+
def call_pack_propagate_1(self):
self.top.after_idle(self.call_pack_propagate)
-
+
def call_pack_propagate(self):
for frame in self.frames:
frame.pack_propagate(0)
-
+
def close(self, event=None):
self.top.destroy()
-
+
def settitle(self):
short = self.shorttitle()
long = self.longtitle()
@@ -80,23 +80,23 @@ class MultiScrolledLists:
def longtitle(self):
# override this
return "Multi Scrolled Lists"
-
+
def shorttitle(self):
# override this
return None
-
+
def width(self, i):
# override this
return 20
-
+
def height(self, i):
# override this
return 10
-
+
def subtitle(self, i):
# override this
return "Column %d" % i
-
+
def fill(self, i):
for k in range(i, self.nlists):
self.lists[k].clear()
@@ -105,14 +105,14 @@ class MultiScrolledLists:
l = self.items(i)
for s in l:
list.append(s)
-
+
def on_select(self, index, i):
item = self.lists[i].get(index)
del self.path[i:]
self.path.append(item)
if i+1 < self.nlists:
self.fill(i+1)
-
+
def items(self, i):
# override this
l = []
@@ -122,7 +122,7 @@ class MultiScrolledLists:
s = self.path[i-1] + "." + s
l.append(s)
return l
-
+
def on_double(self, index, i):
pass