summary refs log tree commit diff stats
path: root/code/widget.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/widget.py
parent5822dff7d91472bf2fc337c68f144e0ce1de09ae (diff)
downloadranger-9506fb8e79f2d04a1ab78039bacdbee7b22109b5.tar.gz
more VROOM
Diffstat (limited to 'code/widget.py')
-rw-r--r--code/widget.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/code/widget.py b/code/widget.py
deleted file mode 100644
index e95e6a9d..00000000
--- a/code/widget.py
+++ /dev/null
@@ -1,39 +0,0 @@
-import curses
-
-class OutOfBoundsException(Exception): pass
-
-class Widget():
-	def __init__(self, win):
-		self.win = win
-		self.setdim(0, 0, 0, 0)
-
-	def setdim(self, y, x, hei=None, wid=None):
-		maxy, maxx = self.win.getmaxyx()
-		wid = wid or maxx - x
-		hei = hei or maxy - y
-		if x + wid > maxx or y + hei > maxy:
-			raise OutOfBoundsException()
-
-		self.x = x
-		self.y = y
-		self.wid = wid
-		self.hei = hei
-	
-	def contains_point(self, y, x):
-		return (x >= self.x and x < self.x + self.wid) and \
-				(y >= self.y and y < self.y + self.hei)
-
-	def feed_env(self):
-		pass
-
-	def feed(self):
-		pass
-
-	def click(self):
-		pass
-	
-	def draw(self):
-		pass
-
-	def destroy(self):
-		pass