diff options
author | hut <hut@lavabit.com> | 2009-12-13 00:45:03 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-13 00:45:03 +0100 |
commit | 728fb8385d3a4dca994ae652ca44b9ffe72a029d (patch) | |
tree | 34f171ecbbcc4a03060738a53de45b75c7f25b60 /ranger/gui/widgets/filelistcontainer.py | |
parent | e657119b4881cec409f42b738f073f5b8e43bc2a (diff) | |
download | ranger-728fb8385d3a4dca994ae652ca44b9ffe72a029d.tar.gz |
added docstrings everywhere
Diffstat (limited to 'ranger/gui/widgets/filelistcontainer.py')
-rw-r--r-- | ranger/gui/widgets/filelistcontainer.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/gui/widgets/filelistcontainer.py b/ranger/gui/widgets/filelistcontainer.py index ed5a36c4..9d95b389 100644 --- a/ranger/gui/widgets/filelistcontainer.py +++ b/ranger/gui/widgets/filelistcontainer.py @@ -19,7 +19,8 @@ class FileListContainer(Widget, DisplayableContainer): if preview: offset += 1 for level in range(len(ratios)): - self.add_obj(FileList(win, level + offset)) + fl = FileList(win, level + offset) + self.add_obj(fl) try: self.main_filelist = self.container[preview and -2 or -1] @@ -32,7 +33,7 @@ class FileListContainer(Widget, DisplayableContainer): def resize(self, y, x, hei, wid): """Resize all the filelists according to the given ratio""" DisplayableContainer.resize(self, y, x, hei, wid) - left = self.y + left = self.x for ratio, i in zip(self.ratios, range(len(self.ratios))): wid = int(ratio * self.wid) try: |