', lambda e, s=self: s._move (-1, MOVE_TOEND))
self.bind ('', lambda e, s=self: s._move (+1, MOVE_TOEND))
frame = Frame(self); frame.pack(side=LEFT, fill=Y)
Label(frame, borderwidth=1, relief=RAISED).pack(fill=X)
sb = Scrollbar(frame, orient=VERTICAL, command=self._scroll)
sb.pack(expand=YES, fill=Y)
self.lists[0]['yscrollcommand']=sb.set
def _move (self, lines, relative=0):
"""
Move the selection a specified number of lines or pages up or
down the list. Used by keyboard navigation.
"""
selected = self.lists[0].curselection()
try:
selected = list(map(int, selected))
except ValueError:
pass
try:
sel = selected[0]
except IndexError:
sel = 0
old &