summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-06-17 22:19:15 +0000
committerIgor Pashev <pashev.igor@gmail.com>2012-06-17 22:19:15 +0000
commit64d17f3c7d1fa2dbb35a494dffc65fb1c9fe5666 (patch)
tree697f1136d6a57c0067f909cb53133bb0f517b0dd
parent93ae10988f009df82d2a1a6f35de904fe1653db1 (diff)
downloadlive-64d17f3c7d1fa2dbb35a494dffc65fb1c9fe5666.tar.gz
Hm... Dialog is not enough
-rwxr-xr-xsetup-urwid.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/setup-urwid.py b/setup-urwid.py
new file mode 100755
index 0000000..3252ba7
--- /dev/null
+++ b/setup-urwid.py
@@ -0,0 +1,17 @@
+#!/usr/bin/python
+
+import urwid as ui
+
+palette=[
+ ('main_header', 'white', 'dark green'),
+ ('main_footer', 'white', 'dark red'),
+ ]
+
+
+main_header = ui.AttrMap(ui.Text(('main_header', 'Dyson Installer'), align='center'), 'main_header')
+main_footer = ui.AttrMap(ui.Text(('main_footer', 'Hello'), align='left'), 'main_footer')
+main_frame = ui.Frame(ui.Filler(ui.Text('Hello')), header=main_header, footer=main_footer)
+
+loop = ui.MainLoop(main_frame, palette)
+loop.run()
+