about summary refs log tree commit diff stats
path: root/code/ui.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-11-27 10:49:48 +0100
committerhut <hut@lavabit.com>2009-11-27 10:49:48 +0100
commit9506fb8e79f2d04a1ab78039bacdbee7b22109b5 (patch)
tree3d5c682e9c5032a1c23be6a98c9d3d6e7c8224b5 /code/ui.py
parent5822dff7d91472bf2fc337c68f144e0ce1de09ae (diff)
downloadranger-9506fb8e79f2d04a1ab78039bacdbee7b22109b5.tar.gz
more VROOM
Diffstat (limited to 'code/ui.py')
-rw-r--r--code/ui.py48
1 files changed, 0 insertions, 48 deletions
diff --git a/code/ui.py b/code/ui.py
deleted file mode 100644
index d9c1de4e..00000000
--- a/code/ui.py
+++ /dev/null
@@ -1,48 +0,0 @@
-import curses, debug
-class UI():
-	def __init__(self, env):
-		self.env = env
-
-		self.widgets = []
-		self.win = curses.initscr()
-		self.win.leaveok(1)
-		curses.noecho()
-		curses.halfdelay(3)
-
-		self.setup()
-		self.resize()
-
-	def setup(self):
-		pass
-
-	def resize(self):
-		self.env.termsize = self.win.getmaxyx()
-
-	def add_widget(self, widg):
-		self.widgets.append(widg)
-
-	def feed_env(self, env):
-		self.env = env
-
-	def exit(self):
-		curses.nocbreak()
-		curses.echo()
-		curses.endwin()
-
-	def draw(self):
-		self.win.erase()
-		for widg in self.widgets:
-			widg.feed_env(self.env)
-			widg.draw()
-		self.win.refresh()
-
-#		for i in range(1, len(self.env.pwd)):
-#			f = self.env.pwd.files[i]
-#			self.win.addstr(i, 0, f.path)
-#			if f.infostring: self.win.addstr(i, 50, f.infostring)
-
-	def get_next_key(self):
-		key = self.win.getch()
-		curses.flushinp()
-		return key
-