summary refs log tree commit diff stats
path: root/code/defaultui.py
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-11-25 17:55:34 +0100
committerhut <hut@lavabit.com>2009-11-25 17:55:34 +0100
commit5822dff7d91472bf2fc337c68f144e0ce1de09ae (patch)
tree7d40218b67f13c9c95141aa5bcb4aa292c42924a /code/defaultui.py
parentcfbb8c84355f28bc7f669105f90c7aae0a972569 (diff)
downloadranger-5822dff7d91472bf2fc337c68f144e0ce1de09ae.tar.gz
implemented more stuff
Diffstat (limited to 'code/defaultui.py')
-rw-r--r--code/defaultui.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/code/defaultui.py b/code/defaultui.py
new file mode 100644
index 00000000..d46c89c8
--- /dev/null
+++ b/code/defaultui.py
@@ -0,0 +1,16 @@
+import ui
+import widget, wdisplay
+
+class DefaultUI(ui.UI):
+	def setup(self):
+		self.main_display = wdisplay.WDisplay(self.win, 0)
+		self.add_widget(self.main_display)
+		self.left_display = wdisplay.WDisplay(self.win, -1)
+		self.add_widget(self.left_display)
+	
+	def resize(self):
+		ui.UI.resize(self)
+		y, x = self.win.getmaxyx()
+		self.main_display.setdim(1, 40, 3, 37)
+		self.left_display.setdim(1, 0, 3, 37)
+