summary refs log tree commit diff stats
path: root/code/defaultui.py
diff options
context:
space:
mode:
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)
+