summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Ward <ian@excess.org>2014-01-01 23:13:56 -0500
committerIan Ward <ian@excess.org>2014-01-01 23:13:56 -0500
commit65d98972155635ebeb8129a0243edb314d011bbd (patch)
treea4bf663a7339855217f82c5132021e30b862d826
parent4a1d5fe055c7624147ffffe56d348fe0107fae7b (diff)
downloadurwid-65d98972155635ebeb8129a0243edb314d011bbd.tar.gz
docs: example screenshot pages, scripts
l---------docs/examples/bigtext.py1
-rw-r--r--docs/examples/bigtext.py.xdotool3
-rw-r--r--docs/examples/browse.py6
-rw-r--r--docs/examples/browse.py.xdotool2
l---------docs/examples/graph.py1
-rw-r--r--docs/examples/graph.py.xdotool2
-rw-r--r--docs/examples/index.rst56
l---------docs/examples/palette_test.py1
-rw-r--r--docs/examples/palette_test.py.xdotool2
l---------docs/examples/real_browse.py1
l---------docs/examples/tour.py1
-rw-r--r--docs/examples/tour.py.xdotool4
12 files changed, 80 insertions, 0 deletions
diff --git a/docs/examples/bigtext.py b/docs/examples/bigtext.py
new file mode 120000
index 0000000..119650d
--- /dev/null
+++ b/docs/examples/bigtext.py
@@ -0,0 +1 @@
+../../examples/bigtext.py \ No newline at end of file
diff --git a/docs/examples/bigtext.py.xdotool b/docs/examples/bigtext.py.xdotool
new file mode 100644
index 0000000..f2b0a8b
--- /dev/null
+++ b/docs/examples/bigtext.py.xdotool
@@ -0,0 +1,3 @@
+windowsize --usehints $RXVTWINDOWID 50 19
+key --window $RXVTWINDOWID BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace BackSpace e x a m p l e s Down Down Down Down Down Down Return
+key --window $RXVTWINDOWID Up Up Up Return
diff --git a/docs/examples/browse.py b/docs/examples/browse.py
new file mode 100644
index 0000000..2bbcc34
--- /dev/null
+++ b/docs/examples/browse.py
@@ -0,0 +1,6 @@
+#!/usr/bin/env python
+
+import real_browse
+import os
+os.chdir('/usr/share/doc/python')
+real_browse.main()
diff --git a/docs/examples/browse.py.xdotool b/docs/examples/browse.py.xdotool
new file mode 100644
index 0000000..77aec5d
--- /dev/null
+++ b/docs/examples/browse.py.xdotool
@@ -0,0 +1,2 @@
+windowsize --usehints $RXVTWINDOWID 45 19
+key --window $RXVTWINDOWID Down plus Down space Down space Down Down Down
diff --git a/docs/examples/graph.py b/docs/examples/graph.py
new file mode 120000
index 0000000..ffbbea0
--- /dev/null
+++ b/docs/examples/graph.py
@@ -0,0 +1 @@
+../../examples/graph.py \ No newline at end of file
diff --git a/docs/examples/graph.py.xdotool b/docs/examples/graph.py.xdotool
new file mode 100644
index 0000000..296c5db
--- /dev/null
+++ b/docs/examples/graph.py.xdotool
@@ -0,0 +1,2 @@
+windowsize --usehints $RXVTWINDOWID 60 24
+key --window $RXVTWINDOWID Down Down Down Return
diff --git a/docs/examples/index.rst b/docs/examples/index.rst
new file mode 100644
index 0000000..a85b7f1
--- /dev/null
+++ b/docs/examples/index.rst
@@ -0,0 +1,56 @@
+.. _urwid-tutorial:
+
+********************
+ Example Programs
+********************
+
+.. currentmodule:: urwid
+
+These example programs may be found in the examples directory of your
+Urwid distribution.
+
+tour.py
+-------
+
+.. image:: tour1.png
+.. image:: tour2.png
+.. image:: tour4.png
+
+A simple example showing how many of the standard widgets may be arranged
+on the screen
+
+
+graph.py
+--------
+
+.. image:: graph1.png
+.. image:: graph2.png
+
+A demonstration of the BarGraph widget and alarms used for animation
+
+
+browse.py
+---------
+
+.. image:: browse1.png
+.. image:: browse2.png
+
+A lazy directory browser with file selection, tree-view, custom widgets
+and list walker
+
+
+palette_test.py
+---------------
+
+.. image:: palette_test2.png
+
+Shows available colors in various screen modes
+
+
+bigtext.py
+----------
+
+.. image:: bigtext2.png
+.. image:: bigtext3.png
+
+A demonstration of the BigText widget
diff --git a/docs/examples/palette_test.py b/docs/examples/palette_test.py
new file mode 120000
index 0000000..0ab2544
--- /dev/null
+++ b/docs/examples/palette_test.py
@@ -0,0 +1 @@
+../../examples/palette_test.py \ No newline at end of file
diff --git a/docs/examples/palette_test.py.xdotool b/docs/examples/palette_test.py.xdotool
new file mode 100644
index 0000000..ed97821
--- /dev/null
+++ b/docs/examples/palette_test.py.xdotool
@@ -0,0 +1,2 @@
+windowsize --usehints $RXVTWINDOWID 79 34
+key --window $RXVTWINDOWID Down Down Down Return Right Down Return
diff --git a/docs/examples/real_browse.py b/docs/examples/real_browse.py
new file mode 120000
index 0000000..a817177
--- /dev/null
+++ b/docs/examples/real_browse.py
@@ -0,0 +1 @@
+../../examples/browse.py \ No newline at end of file
diff --git a/docs/examples/tour.py b/docs/examples/tour.py
new file mode 120000
index 0000000..84d7931
--- /dev/null
+++ b/docs/examples/tour.py
@@ -0,0 +1 @@
+../../examples/tour.py \ No newline at end of file
diff --git a/docs/examples/tour.py.xdotool b/docs/examples/tour.py.xdotool
new file mode 100644
index 0000000..1d3c52a
--- /dev/null
+++ b/docs/examples/tour.py.xdotool
@@ -0,0 +1,4 @@
+windowsize --usehints $RXVTWINDOWID 27 25
+key --window $RXVTWINDOWID Return Page_Down Page_Down
+windowsize --usehints $RXVTWINDOWID 50 18
+key --window $RXVTWINDOWID Page_Down Page_Down Page_Down Page_Down Page_Down Page_Down Page_Down Page_Down Page_Down