Urwid 0.9.9 Example Screenshots
Welcome to the urwid tour!
UP / DOWN / PAGE UP / PAGE
DOWN scroll. F8 exits.
Text widgets are the
most common in any
urwid program. This
Text widget was created
without setting the
wrap or align mode, so
it defaults to left
alignment with wrapping
on space characters.
Change the window width
to see how the widgets
on this page react.
This Text widget is
wrapped with a Padding
widget to keep it
indented on the left
and right.
This Text widget is right
aligned. Wrapped words
stay to the right as well.
Welcome to the urwid tour!
UP / DOWN / PAGE UP / PAGE
DOWN scroll. F8 exits.
options. This is a
standard Text widget
wrapped with a Padding
widget with the alignment
set to relative 20% and
with its width fixed at 40.
===========================
The Divider widget
repeats the same
character across the
whole line. It can
also add blank lines
above and below.
---------------------------
The Edit widget is a
simple text editing
widget. It supports
cursor movement and
Welcome to the urwid tour! UP / DOWN / PAGE UP /
PAGE DOWN scroll. F8 exits.
[ ] Clear [ ] Dry [ ] Racing
Coat Stripe
(X) Morning ( ) Afternoon
( ) Evening ( ) Weekend
All these widgets have been diplayed with the
help of a ListBox widget. ListBox widgets
handle scrolling and changing focus. A Frame
widget is used to keep the instructions at the
top of the screen.
Urwid tour. Shows many of the standard widget types and features.
Urwid Palette Test
( ) Monochrome (X) Foreground Colors
( ) 16-Color ( ) Background Colors
( ) 88-Color
(X) 256-Color < Exit >
brown dark red dark magenta dark blue dark cyan dark green
yellow light red light magenta light blue light cyan light green
#00f#06f#08f#0af#0df#0ff black dark gray
#60f#00d#06d#08d#0ad#0dd#0fd light gray white
#80f#60d#00a#06a#08a#0aa#0da#0fa
#a0f#80d#60a#008#068#088#0a8#0d8#0f8
#d0f#a0d#80d#608#006#066#086#0a6#0d6#0f6
#f0f#d0d#a0a#808#606#000#060#080#0a0#0d0#0f0#0f6#0f8#0fa#0fd#0ff
#f0d#d0a#a08#806#600#660#680#6a0#6d0#6f0#6f6#6f8#6fa#6fd#6ff#0df
#f0a#d08#a06#800#860#880#8a0#8d0#8f0#8f6#8f8#8fa#8fd#8ff#6df#0af
#f08#d06#a00#a60#a80#aa0#ad0#af0#af6#af8#afa#afd#aff#8df#6af#08f
#f06#d00#d60#d80#da0#dd0#df0#df6#df8#dfa#dfd#dff#adf#8af#68f#06f
#f00#f60#f80#fa0#fd0#ff0#ff6#ff8#ffa#ffd#fff#ddf#aaf#88f#66f#00f
#fd0#fd6#fd8#fda#fdd#fdf#daf#a8f#86f#60f
#66d#68d#6ad#6dd #fa0#fa6#fa8#faa#fad#faf#d8f#a6f#80f
#86d#66a#68a#6aa#6da #f80#f86#f88#f8a#f8d#f8f#d6f#a0f
#a6d#86a#668#688#6a8#6d8 #f60#f66#f68#f6a#f6d#f6f#d0f
#d6d#a6a#868#666#686#6a6#6d6#6d8#6da#6dd #f00#f06#f08#f0a#f0d#f0f
#d6a#a68#866#886#8a6#8d6#8d8#8da#8dd#6ad
#d68#a66#a86#aa6#ad6#ad8#ada#add#8ad#68d
#d66#d86#da6#dd6#dd8#dda#ddd#aad#88d#66d g78 g82 g85 g89 g93 g100
#da6#da8#daa#dad#a8d#86d g52 g58 g62 g66 g70 g74
#88a#8aa #d86#d88#d8a#d8d#a6d g27 g31 g35 g38 g42 g46 g50
#a8a#888#8a8#8aa #d66#d68#d6a#d6d g0 g3 g7 g11 g15 g19 g23
#a88#aa8#aaa#88a
#a88#a8a
Urwid Palette Test
( ) Monochrome ( ) Foreground Colors
( ) 16-Color (X) Background Colors
( ) 88-Color
(X) 256-Color < Exit >
brown dark red dark magenta dark blue dark cyan dark green
h11 h9 h13 h12 h14 h10
#00f#06f#08f#0af#0df#0ff black h8
#60f#00d#06d#08d#0ad#0dd#0fd light gray h15
#80f#60d#00a#06a#08a#0aa#0da#0fa
#a0f#80d#60a#008#068#088#0a8#0d8#0f8
#d0f#a0d#80d#608#006#066#086#0a6#0d6#0f6
#f0f#d0d#a0a#808#606#000#060#080#0a0#0d0#0f0#0f6#0f8#0fa#0fd#0ff
#f0d#d0a#a08#806#600#660#680#6a0#6d0#6f0#6f6#6f8#6fa#6fd#6ff#0df
#f0a#d08#a06#800#860#880#8a0#8d0#8f0#8f6#8f8#8fa#8fd#8ff#6df#0af
#f08#d06#a00#a60#a80#aa0#ad0#af0#af6#af8#afa#afd#aff#8df#6af#08f
#f06#d00#d60#d80#da0#dd0#df0#df6#df8#dfa#dfd#dff#adf#8af#68f#06f
#f00#f60#f80#fa0#fd0#ff0#ff6#ff8#ffa#ffd#fff#ddf#aaf#88f#66f#00f
#fd0#fd6#fd8#fda#fdd#fdf#daf#a8f#86f#60f
#66d#68d#6ad#6dd #fa0#fa6#fa8#faa#fad#faf#d8f#a6f#80f
#86d#66a#68a#6aa#6da #f80#f86#f88#f8a#f8d#f8f#d6f#a0f
#a6d#86a#668#688#6a8#6d8 #f60#f66#f68#f6a#f6d#f6f#d0f
#d6d#a6a#868#666#686#6a6#6d6#6d8#6da#6dd #f00#f06#f08#f0a#f0d#f0f
#d6a#a68#866#886#8a6#8d6#8d8#8da#8dd#6ad
#d68#a66#a86#aa6#ad6#ad8#ada#add#8ad#68d
#d66#d86#da6#dd6#dd8#dda#ddd#aad#88d#66d g78 g82 g85 g89 g93 g100
#da6#da8#daa#dad#a8d#86d g52 g58 g62 g66 g70 g74
#88a#8aa #d86#d88#d8a#d8d#a6d g27 g31 g35 g38 g42 g46 g50
#a8a#888#8a8#8aa #d66#d68#d6a#d6d g0 g3 g7 g11 g15 g19 g23
#a88#aa8#aaa#88a
#a88#a8a
Palette test. Shows the available foreground and background settings
in monochrome, 16 color, 88 color and 256 color modes.
1
1
2
3
5
8
13
21
34
55
89
144
Fibonacci Set Viewer
UP, DOWN, PAGE UP and PAGE
DOWN move view Q exits
7778742049
12586269025
20365011074
32951280099
53316291173
86267571272
139583862445
225851433717
365435296162
591286729879
956722026041
1548008755920
Fibonacci Set Viewer
UP, DOWN, PAGE UP and PAGE
DOWN move view Q exits
26925748508234281076009
43566776258854844738105
70492524767089125814114
114059301025943970552219
184551825793033096366333
298611126818977066918552
483162952612010163284885
781774079430987230203437
1264937032042997393488322
2046711111473984623691759
3311648143516982017180081
5358359254990966640871840
Fibonacci Set Viewer
UP, DOWN, PAGE UP and PAGE
DOWN move view Q exits
Urwid example fibonacci sequence viewer / unbounded data demo
Features:
- custom list walker class for browsing infinite set
- custom wrap mode "numeric" for wrapping numbers to right and bottom
class EditDisplay:
palette = [
('body','default', 'default'),
('foot','dark cyan', 'dark blue', 'bold'),
('key','light cyan', 'dark blue', 'underline'),
]
footer_text = ('foot', [
"Text Editor ",
('key', "F5"), " save ",
('key', "F8"), " quit",
])
def __init__(self, name):
self.save_name = name
self.walker = LineWalker(name)
self.listbox = urwid.ListBox(self.walker)
Text Editor F5 save F8 quit
Urwid example lazy text editor suitable for tabbed and flowing text
Features:
- custom list walker for lazily loading text file
Usage:
edit.py <filename>
Urwid BigText example program - F8 exits.
│
┌───┐ ─┐ ┌─ ┌───┐ ┬─┬─┐ ┌───┐ │ ┌───┐
├───┘ ├─┤ ┌───┤ │ │ │ │ │ │ ├───┘
└───┘ ─┘ └─ └───┴ ┴ ┴ ├───┘ └ └───┘
│
example
Characters Fonts:
Available: ( ) Thin 3x3
!"#$%&'()*+,-./ ( ) Thin 4x3
0123456789:;<=>? ( ) Half Block 5x4
@ABCDEFGHIJKLMNO ( ) Half Block 6x5
PQRSTUVWXYZ[\]^_ ( ) Half Block Heavy 6x5
`abcdefghijklmno (X) Thin 6x6
pqrstuvwxyz{|}~ ( ) Half Block 7x7
Urwid BigText example program - F8 exits.
██
▐█
▄███▄ ▐█ █▌ ▄███▄ ▄█▌▐█▄ ▐████▄ ▐█ ▄███▄
▐█▄▄▄█▌ ▀█▄█▀ ▄▄▄█▌▐█ ▐▌ █▌▐█ █▌ ▐█ ▐█▄▄▄█▌
▐█▀▀▀ ▄█▀█▄ ▐█▀▀▀█▌▐█ ▐▌ █▌▐█ █▌ ▐█ ▐█▀▀▀
▀███▀ ▐█ █▌ ▀████▌▐█ █▌▐████▀ ▐█▌ ▀███▀
▐█
example
Characters Fonts:
Available: ( ) Thin 3x3
!"#$%&'()*+,-./ ( ) Thin 4x3
0123456789:;<=>? ( ) Half Block 5x4
@ABCDEFGHIJKLMNO ( ) Half Block 6x5
PQRSTUVWXYZ[\]^_ ( ) Half Block Heavy 6x5
`abcdefghijklmno ( ) Thin 6x6
pqrstuvwxyz{|}~´ (X) Half Block 7x7
Urwid example demonstrating use of the BigText widget.
/usr/share/doc/python
+ python
- faq
- python-policy.html
changelog.Debian.gz
copyright
FAQ.html
python-policy.sgml.gz
python-policy.txt.gz
README.Debian
- python2.4
- python2.4-dev
- python2.4-minimal
- python2.5
- python2.5-dev
Directory Browser UP,DOWN,PAGE
UP,PAGE DOWN SPACE +,- LEFT HOME
END Q
/usr/share/doc/python
+ python
+ faq
extending.html
general.html
gui.html
installed.html
library.html
programming.html
windows.html
- python-policy.html
changelog.Debian.gz
copyright
FAQ.html
python-policy.sgml.gz
Directory Browser UP,DOWN,PAGE
UP,PAGE DOWN SPACE +,- LEFT HOME
END Q
Urwid example lazy directory browser / tree view
Features:
- custom selectable widgets for files and directories
- custom message widgets to identify access errors and empty directories
- custom list walker for displaying widgets in a tree fashion
- outputs a quoted list of files and directories "selected" on exit
Help Column ? Column A
Column Calculator 12000
+ 19
Numbers: 0-9 -------------------
12019
Operators: +, -, * * 5
and / -------------------
60095
Editing: BACKSPACE
and DELETE
Movement: UP, DOWN,
[text continues..
press ? then
scroll]
Help Column A Column B Column C
Column ? 12000 52 1988
Column Ca + 19 + 62
lculator --------- + 72
12019 ---------
Numbers: * 5 186
0-9 ---------
60095
Operators - (B)
: +, -, * ---------
[text con 59909
tinues.. + (C)
press ? ---------
then 61897
scroll]
Urwid advanced example column calculator application
Features:
- multiple separate list boxes within columns
- custom edit widget for editing calculator cells
- custom parent widget for links to other columns
- custom list walker to show and hide cell results as required
- custom wrap and align modes for editing right-1 aligned numbers
- outputs commands that may be used to recreate expression on exit
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒┌───────────────────────────────────────────────────────────────┐▒▒▒
▒▒│ │ Mode │ ▒
▒▒│ │ (X) Saw │ ▒
▒▒│ │ ( ) Square │ ▒
▒▒│ │ ( ) Sine 1 │ ▒
▒▒│ │ ( ) Sine 2 │ ▒
▒▒│ │ ( ) Sine 3 │ ▒
▒▒│ │ │ ▒
▒▒│ │ Animation │ ▒
▒▒│ │ < Start > < Reset >│ ▒
▒▒│ │ 0 % │ ▒
▒▒│ │ │ ▒
▒▒│ │ ┌──────────────────┐│ ▒
▒▒│ │ │[ ] Enable Unicode││ ▒
▒▒│ │ │ Graphics ││ ▒
▒▒│ │ └──────────────────┘│ ▒
▒▒│ │ │ ▒
▒▒│ │ < Quit >│ ▒
▒▒│ │ │ ▒
▒▒│ │ │ ▒
▒▒│ │ │ ▒
▒▒└───────────────────────────────────────────────────────────────┘ ▒
▒▒▒ ▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒┌───────────────────────────────────────────────────────────────┐▒▒▒
▒▒│ │ Mode │ ▒
▒▒│ │ ( ) Saw │ ▒
▒▒│ │ ( ) Square │ ▒
▒▒│ │ ( ) Sine 1 │ ▒
▒▒│ │ (X) Sine 2 │ ▒
▒▒│ │ ( ) Sine 3 │ ▒
▒▒│ │ │ ▒
▒▒│ │ Animation │ ▒
▒▒│ │ < Start > < Reset >│ ▒
▒▒│ │ 0 % │ ▒
▒▒│ │ │ ▒
▒▒│ │ ┌──────────────────┐│ ▒
▒▒│ │ │[ ] Enable Unicode││ ▒
▒▒│ │ │ Graphics ││ ▒
▒▒│ │ └──────────────────┘│ ▒
▒▒│ │ │ ▒
▒▒│ │ < Quit >│ ▒
▒▒│ │ │ ▒
▒▒│ │ │ ▒
▒▒│ │ │ ▒
▒▒└───────────────────────────────────────────────────────────────┘ ▒
▒▒▒ ▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
Urwid example demonstrating use of the BarGraph widget and creating a
floating-window appearance. Also shows use of alarms to create timed
animation.
Tell me something
about yourself.
I like traffic
lights,
< Exit >
Download extra modules
[X] errn Errinator
0.9b
[ ] frob Frobnob 5
[ ] k9 Bug Hound
< OK > < Cancel >
Vent radioactive gas?
< Yes > < No >
Urwid example similar to dialog(1) program