diff options
author | hut <hut@lavabit.com> | 2009-11-27 10:49:48 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-11-27 10:49:48 +0100 |
commit | 9506fb8e79f2d04a1ab78039bacdbee7b22109b5 (patch) | |
tree | 3d5c682e9c5032a1c23be6a98c9d3d6e7c8224b5 /code/wdisplay.py | |
parent | 5822dff7d91472bf2fc337c68f144e0ce1de09ae (diff) | |
download | ranger-9506fb8e79f2d04a1ab78039bacdbee7b22109b5.tar.gz |
more VROOM
Diffstat (limited to 'code/wdisplay.py')
-rw-r--r-- | code/wdisplay.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/code/wdisplay.py b/code/wdisplay.py deleted file mode 100644 index a564a6cb..00000000 --- a/code/wdisplay.py +++ /dev/null @@ -1,34 +0,0 @@ -import widget -import curses -import file, directory - -class WDisplay(widget.Widget): - def __init__(self, win, level): - widget.Widget.__init__(self,win) - self.level = level - - def feed_env(self, env): - self.target = env.at_level(self.level) - - def draw(self): - if type(self.target) == file.File: - self.draw_file() - elif type(self.target) == directory.Directory: - self.draw_directory() - elif self.target is None: - self.win.addnstr(self.y, self.x, "---", self.wid) - else: - self.win.addnstr(self.y, self.x, "unknown type.", self.wid) - - def draw_file(self): - self.win.addnstr(self.y, self.x, "this is a file.", self.wid) - - def draw_directory(self): - self.target.load_content_once() - for i in range(self.hei): - try: - f = self.target[i] - except IndexError: - break - self.win.addnstr(self.y + i, self.x, self.target[i].path, self.wid) - |