diff options
author | Ian Ward <ian@excess.org> | 2012-10-19 22:57:43 -0400 |
---|---|---|
committer | Ian Ward <ian@excess.org> | 2012-10-19 22:57:43 -0400 |
commit | 47f2199cde5ad2b44b55174ac04cd4d7c95646ee (patch) | |
tree | ac506181140367d8d210b539e348a914d8d4f97d /docs | |
parent | ac0812dfb5eba20a73526edf01f4d0b305d1f5e4 (diff) | |
download | urwid-47f2199cde5ad2b44b55174ac04cd4d7c95646ee.tar.gz |
tutorial: make example file names match names in tutorial
--HG--
rename : docs/tutorial/menu4.py => docs/tutorial/adventure.py
rename : docs/tutorial/menu4.py.xdotool => docs/tutorial/adventure.py.xdotool
rename : docs/tutorial/menu41.png => docs/tutorial/adventure1.png
rename : docs/tutorial/menu42.png => docs/tutorial/adventure2.png
rename : docs/tutorial/menu43.png => docs/tutorial/adventure3.png
rename : docs/tutorial/menu44.png => docs/tutorial/adventure4.png
rename : docs/tutorial/menu2.py => docs/tutorial/cmenu.py
rename : docs/tutorial/menu2.py.xdotool => docs/tutorial/cmenu.py.xdotool
rename : docs/tutorial/menu21.png => docs/tutorial/cmenu1.png
rename : docs/tutorial/menu22.png => docs/tutorial/cmenu2.png
rename : docs/tutorial/menu23.png => docs/tutorial/cmenu3.png
rename : docs/tutorial/menu24.png => docs/tutorial/cmenu4.png
rename : docs/tutorial/menu3.py => docs/tutorial/hmenu.py
rename : docs/tutorial/menu3.py.xdotool => docs/tutorial/hmenu.py.xdotool
rename : docs/tutorial/menu31.png => docs/tutorial/hmenu1.png
rename : docs/tutorial/menu32.png => docs/tutorial/hmenu2.png
rename : docs/tutorial/menu33.png => docs/tutorial/hmenu3.png
rename : docs/tutorial/menu34.png => docs/tutorial/hmenu4.png
rename : docs/tutorial/lbcont.py => docs/tutorial/multiple.py
rename : docs/tutorial/lbcont.py.xdotool => docs/tutorial/multiple.py.xdotool
rename : docs/tutorial/lbcont1.png => docs/tutorial/multiple1.png
rename : docs/tutorial/lbcont2.png => docs/tutorial/multiple2.png
rename : docs/tutorial/lbcont3.png => docs/tutorial/multiple3.png
rename : docs/tutorial/lbcont4.png => docs/tutorial/multiple4.png
rename : docs/tutorial/edit.py => docs/tutorial/qa.py
rename : docs/tutorial/edit.py.xdotool => docs/tutorial/qa.py.xdotool
rename : docs/tutorial/edit1.png => docs/tutorial/qa1.png
rename : docs/tutorial/edit2.png => docs/tutorial/qa2.png
rename : docs/tutorial/edit3.png => docs/tutorial/qa3.png
rename : docs/tutorial/frlb.py => docs/tutorial/sig.py
rename : docs/tutorial/frlb.py.xdotool => docs/tutorial/sig.py.xdotool
rename : docs/tutorial/frlb1.png => docs/tutorial/sig1.png
rename : docs/tutorial/frlb2.png => docs/tutorial/sig2.png
rename : docs/tutorial/frlb3.png => docs/tutorial/sig3.png
rename : docs/tutorial/frlb4.png => docs/tutorial/sig4.png
rename : docs/tutorial/menu1.py => docs/tutorial/smenu.py
rename : docs/tutorial/menu1.py.xdotool => docs/tutorial/smenu.py.xdotool
rename : docs/tutorial/menu11.png => docs/tutorial/smenu1.png
rename : docs/tutorial/menu12.png => docs/tutorial/smenu2.png
rename : docs/tutorial/menu13.png => docs/tutorial/smenu3.png
Diffstat (limited to 'docs')
-rw-r--r-- | docs/tutorial/adventure.py (renamed from docs/tutorial/menu4.py) | 0 | ||||
-rw-r--r-- | docs/tutorial/adventure.py.xdotool (renamed from docs/tutorial/menu4.py.xdotool) | 0 | ||||
-rw-r--r-- | docs/tutorial/adventure1.png (renamed from docs/tutorial/menu41.png) | bin | 806 -> 806 bytes | |||
-rw-r--r-- | docs/tutorial/adventure2.png (renamed from docs/tutorial/menu42.png) | bin | 1204 -> 1204 bytes | |||
-rw-r--r-- | docs/tutorial/adventure3.png (renamed from docs/tutorial/menu43.png) | bin | 1423 -> 1423 bytes | |||
-rw-r--r-- | docs/tutorial/adventure4.png (renamed from docs/tutorial/menu44.png) | bin | 1312 -> 1312 bytes | |||
-rw-r--r-- | docs/tutorial/cmenu.py (renamed from docs/tutorial/menu2.py) | 0 | ||||
-rw-r--r-- | docs/tutorial/cmenu.py.xdotool (renamed from docs/tutorial/menu2.py.xdotool) | 0 | ||||
-rw-r--r-- | docs/tutorial/cmenu1.png (renamed from docs/tutorial/menu21.png) | bin | 1166 -> 1166 bytes | |||
-rw-r--r-- | docs/tutorial/cmenu2.png (renamed from docs/tutorial/menu22.png) | bin | 1222 -> 1222 bytes | |||
-rw-r--r-- | docs/tutorial/cmenu3.png (renamed from docs/tutorial/menu23.png) | bin | 1510 -> 1510 bytes | |||
-rw-r--r-- | docs/tutorial/cmenu4.png (renamed from docs/tutorial/menu24.png) | bin | 1418 -> 1418 bytes | |||
-rw-r--r-- | docs/tutorial/hmenu.py (renamed from docs/tutorial/menu3.py) | 0 | ||||
-rw-r--r-- | docs/tutorial/hmenu.py.xdotool (renamed from docs/tutorial/menu3.py.xdotool) | 0 | ||||
-rw-r--r-- | docs/tutorial/hmenu1.png (renamed from docs/tutorial/menu31.png) | bin | 1217 -> 1217 bytes | |||
-rw-r--r-- | docs/tutorial/hmenu2.png (renamed from docs/tutorial/menu32.png) | bin | 1544 -> 1544 bytes | |||
-rw-r--r-- | docs/tutorial/hmenu3.png (renamed from docs/tutorial/menu33.png) | bin | 1869 -> 1869 bytes | |||
-rw-r--r-- | docs/tutorial/hmenu4.png (renamed from docs/tutorial/menu34.png) | bin | 1637 -> 1637 bytes | |||
-rw-r--r-- | docs/tutorial/index.rst | 66 | ||||
-rw-r--r-- | docs/tutorial/multiple.py (renamed from docs/tutorial/lbcont.py) | 0 | ||||
-rw-r--r-- | docs/tutorial/multiple.py.xdotool (renamed from docs/tutorial/lbcont.py.xdotool) | 0 | ||||
-rw-r--r-- | docs/tutorial/multiple1.png (renamed from docs/tutorial/lbcont1.png) | bin | 503 -> 503 bytes | |||
-rw-r--r-- | docs/tutorial/multiple2.png (renamed from docs/tutorial/lbcont2.png) | bin | 832 -> 832 bytes | |||
-rw-r--r-- | docs/tutorial/multiple3.png (renamed from docs/tutorial/lbcont3.png) | bin | 1056 -> 1056 bytes | |||
-rw-r--r-- | docs/tutorial/multiple4.png (renamed from docs/tutorial/lbcont4.png) | bin | 1059 -> 1059 bytes | |||
-rw-r--r-- | docs/tutorial/qa.py (renamed from docs/tutorial/edit.py) | 0 | ||||
-rw-r--r-- | docs/tutorial/qa.py.xdotool (renamed from docs/tutorial/edit.py.xdotool) | 0 | ||||
-rw-r--r-- | docs/tutorial/qa1.png (renamed from docs/tutorial/edit1.png) | bin | 396 -> 396 bytes | |||
-rw-r--r-- | docs/tutorial/qa2.png (renamed from docs/tutorial/edit2.png) | bin | 648 -> 648 bytes | |||
-rw-r--r-- | docs/tutorial/qa3.png (renamed from docs/tutorial/edit3.png) | bin | 735 -> 735 bytes | |||
-rw-r--r-- | docs/tutorial/sig.py (renamed from docs/tutorial/frlb.py) | 0 | ||||
-rw-r--r-- | docs/tutorial/sig.py.xdotool (renamed from docs/tutorial/frlb.py.xdotool) | 0 | ||||
-rw-r--r-- | docs/tutorial/sig1.png (renamed from docs/tutorial/frlb1.png) | bin | 499 -> 499 bytes | |||
-rw-r--r-- | docs/tutorial/sig2.png (renamed from docs/tutorial/frlb2.png) | bin | 728 -> 728 bytes | |||
-rw-r--r-- | docs/tutorial/sig3.png (renamed from docs/tutorial/frlb3.png) | bin | 927 -> 927 bytes | |||
-rw-r--r-- | docs/tutorial/sig4.png (renamed from docs/tutorial/frlb4.png) | bin | 932 -> 932 bytes | |||
-rw-r--r-- | docs/tutorial/smenu.py (renamed from docs/tutorial/menu1.py) | 0 | ||||
-rw-r--r-- | docs/tutorial/smenu.py.xdotool (renamed from docs/tutorial/menu1.py.xdotool) | 0 | ||||
-rw-r--r-- | docs/tutorial/smenu1.png (renamed from docs/tutorial/menu11.png) | bin | 997 -> 997 bytes | |||
-rw-r--r-- | docs/tutorial/smenu2.png (renamed from docs/tutorial/menu12.png) | bin | 991 -> 991 bytes | |||
-rw-r--r-- | docs/tutorial/smenu3.png (renamed from docs/tutorial/menu13.png) | bin | 561 -> 561 bytes |
41 files changed, 33 insertions, 33 deletions
diff --git a/docs/tutorial/menu4.py b/docs/tutorial/adventure.py index 129ff50..129ff50 100644 --- a/docs/tutorial/menu4.py +++ b/docs/tutorial/adventure.py diff --git a/docs/tutorial/menu4.py.xdotool b/docs/tutorial/adventure.py.xdotool index a09d0fd..a09d0fd 100644 --- a/docs/tutorial/menu4.py.xdotool +++ b/docs/tutorial/adventure.py.xdotool diff --git a/docs/tutorial/menu41.png b/docs/tutorial/adventure1.png Binary files differindex 60c36e0..60c36e0 100644 --- a/docs/tutorial/menu41.png +++ b/docs/tutorial/adventure1.png diff --git a/docs/tutorial/menu42.png b/docs/tutorial/adventure2.png Binary files differindex 1aafd32..1aafd32 100644 --- a/docs/tutorial/menu42.png +++ b/docs/tutorial/adventure2.png diff --git a/docs/tutorial/menu43.png b/docs/tutorial/adventure3.png Binary files differindex ed8e6ef..ed8e6ef 100644 --- a/docs/tutorial/menu43.png +++ b/docs/tutorial/adventure3.png diff --git a/docs/tutorial/menu44.png b/docs/tutorial/adventure4.png Binary files differindex 7988daa..7988daa 100644 --- a/docs/tutorial/menu44.png +++ b/docs/tutorial/adventure4.png diff --git a/docs/tutorial/menu2.py b/docs/tutorial/cmenu.py index fff0615..fff0615 100644 --- a/docs/tutorial/menu2.py +++ b/docs/tutorial/cmenu.py diff --git a/docs/tutorial/menu2.py.xdotool b/docs/tutorial/cmenu.py.xdotool index 69c29b5..69c29b5 100644 --- a/docs/tutorial/menu2.py.xdotool +++ b/docs/tutorial/cmenu.py.xdotool diff --git a/docs/tutorial/menu21.png b/docs/tutorial/cmenu1.png Binary files differindex 9e8ea5b..9e8ea5b 100644 --- a/docs/tutorial/menu21.png +++ b/docs/tutorial/cmenu1.png diff --git a/docs/tutorial/menu22.png b/docs/tutorial/cmenu2.png Binary files differindex 5df7578..5df7578 100644 --- a/docs/tutorial/menu22.png +++ b/docs/tutorial/cmenu2.png diff --git a/docs/tutorial/menu23.png b/docs/tutorial/cmenu3.png Binary files differindex f366450..f366450 100644 --- a/docs/tutorial/menu23.png +++ b/docs/tutorial/cmenu3.png diff --git a/docs/tutorial/menu24.png b/docs/tutorial/cmenu4.png Binary files differindex ef2b446..ef2b446 100644 --- a/docs/tutorial/menu24.png +++ b/docs/tutorial/cmenu4.png diff --git a/docs/tutorial/menu3.py b/docs/tutorial/hmenu.py index c48f42b..c48f42b 100644 --- a/docs/tutorial/menu3.py +++ b/docs/tutorial/hmenu.py diff --git a/docs/tutorial/menu3.py.xdotool b/docs/tutorial/hmenu.py.xdotool index 12b25aa..12b25aa 100644 --- a/docs/tutorial/menu3.py.xdotool +++ b/docs/tutorial/hmenu.py.xdotool diff --git a/docs/tutorial/menu31.png b/docs/tutorial/hmenu1.png Binary files differindex 3be2a6a..3be2a6a 100644 --- a/docs/tutorial/menu31.png +++ b/docs/tutorial/hmenu1.png diff --git a/docs/tutorial/menu32.png b/docs/tutorial/hmenu2.png Binary files differindex 46af0ec..46af0ec 100644 --- a/docs/tutorial/menu32.png +++ b/docs/tutorial/hmenu2.png diff --git a/docs/tutorial/menu33.png b/docs/tutorial/hmenu3.png Binary files differindex 7e16e5e..7e16e5e 100644 --- a/docs/tutorial/menu33.png +++ b/docs/tutorial/hmenu3.png diff --git a/docs/tutorial/menu34.png b/docs/tutorial/hmenu4.png Binary files differindex 49b7122..49b7122 100644 --- a/docs/tutorial/menu34.png +++ b/docs/tutorial/hmenu4.png diff --git a/docs/tutorial/index.rst b/docs/tutorial/index.rst index fa58524..1a84bb6 100644 --- a/docs/tutorial/index.rst +++ b/docs/tutorial/index.rst @@ -167,14 +167,14 @@ a widget before the correct one has been created. Question and Answer ------------------- -.. image:: edit1.png -.. image:: edit2.png -.. image:: edit3.png +.. image:: qa1.png +.. image:: qa2.png +.. image:: qa3.png This program asks for your name then responds ``Nice to meet you, (your name).`` -.. literalinclude:: edit.py +.. literalinclude:: qa.py :linenos: The :class:`Edit` widget is based on the :class:`Text` widget but it accepts @@ -204,15 +204,15 @@ and extend than handling all special input in an *unhandled_input* function. Signal Handlers --------------- -.. image:: frlb1.png -.. image:: frlb2.png -.. image:: frlb3.png -.. image:: frlb4.png +.. image:: sig1.png +.. image:: sig2.png +.. image:: sig3.png +.. image:: sig4.png This program asks for your name and responds ``Nice to meet you, (your name)`` *while* you type your name. Press *DOWN* then *SPACE* or *ENTER* to exit. -.. literalinclude:: frlb.py +.. literalinclude:: sig.py :linenos: * An :class:`Edit` widget and a :class:`Text` reply @@ -231,16 +231,16 @@ This program asks for your name and responds ``Nice to meet you, (your name)`` Multiple Questions ------------------ -.. image:: lbcont1.png -.. image:: lbcont2.png -.. image:: lbcont3.png -.. image:: lbcont4.png +.. image:: multiple1.png +.. image:: multiple2.png +.. image:: multiple3.png +.. image:: multiple4.png This program asks for your name and responds ``Nice to meet you, (your name).`` It then asks again, and again. Old values may be changed and the responses will be updated when you press *ENTER*. *ENTER* on a blank line exits. -.. literalinclude:: lbcont.py +.. literalinclude:: multiple.py :linenos: :class:`ListBox` widgets let you scroll through a number of flow widgets @@ -277,14 +277,14 @@ it in a subclass. Simple Menu ----------- -.. image:: menu11.png -.. image:: menu12.png -.. image:: menu13.png +.. image:: smenu1.png +.. image:: smenu2.png +.. image:: smenu3.png We can create a very simple menu using a list of :class:`Button` widgets. This program lets you choose an option then repeats what you chose. -.. literalinclude:: menu1.py +.. literalinclude:: smenu.py :linenos: * *menu()* builds a :class:`ListBox` with a *title* and a sequence of :class:`Button` @@ -304,16 +304,16 @@ This program lets you choose an option then repeats what you chose. Cascading Menu -------------- -.. image:: menu21.png -.. image:: menu22.png -.. image:: menu23.png -.. image:: menu24.png +.. image:: cmenu1.png +.. image:: cmenu2.png +.. image:: cmenu3.png +.. image:: cmenu4.png A nested menu effect can be created by having some buttons open new menus. This program lets you choose an option from a nested menu that cascades across the screen. You may return to previous menus by pressing *ESC*. -.. literalinclude:: menu2.py +.. literalinclude:: cmenu.py :linenos: * *menu_button()* returns an :class:`AttrMap`-decorated :class:`Button` @@ -347,17 +347,17 @@ case as a base class for a widget that will be replacing its own contents regula Horizontal Menu --------------- -.. image:: menu31.png -.. image:: menu32.png -.. image:: menu33.png -.. image:: menu34.png +.. image:: hmenu1.png +.. image:: hmenu2.png +.. image:: hmenu3.png +.. image:: hmenu4.png This example is like the previous but new menus appear on the right and push old menus off the left side of the screen. The look of buttons and other menu elements are heavily customized and new widget classes are used instead of factory functions. -.. literalinclude:: menu3.py +.. literalinclude:: hmenu.py :linenos: * *MenuButton* is a customized :class:`Button` widget. :class:`Button` uses @@ -386,10 +386,10 @@ as a default when no other display attribute is specified. Adventure Game -------------- -.. image:: menu41.png -.. image:: menu42.png -.. image:: menu43.png -.. image:: menu44.png +.. image:: adventure1.png +.. image:: adventure2.png +.. image:: adventure3.png +.. image:: adventure4.png We can use the same sort of code to build a simple adventure game. Instead of menus we have "places" and instead of submenus and parent menus we just @@ -397,7 +397,7 @@ have "exits". This example scrolls previous places off the top of the screen, allowing you to scroll back to view but not interact with previous places. -.. literalinclude:: menu4.py +.. literalinclude:: adventure.py :linenos: This example starts to show some separation between the application logic diff --git a/docs/tutorial/lbcont.py b/docs/tutorial/multiple.py index b2bc8a4..b2bc8a4 100644 --- a/docs/tutorial/lbcont.py +++ b/docs/tutorial/multiple.py diff --git a/docs/tutorial/lbcont.py.xdotool b/docs/tutorial/multiple.py.xdotool index 8abae5b..8abae5b 100644 --- a/docs/tutorial/lbcont.py.xdotool +++ b/docs/tutorial/multiple.py.xdotool diff --git a/docs/tutorial/lbcont1.png b/docs/tutorial/multiple1.png Binary files differindex c986f44..c986f44 100644 --- a/docs/tutorial/lbcont1.png +++ b/docs/tutorial/multiple1.png diff --git a/docs/tutorial/lbcont2.png b/docs/tutorial/multiple2.png Binary files differindex ae8f745..ae8f745 100644 --- a/docs/tutorial/lbcont2.png +++ b/docs/tutorial/multiple2.png diff --git a/docs/tutorial/lbcont3.png b/docs/tutorial/multiple3.png Binary files differindex 31ee89a..31ee89a 100644 --- a/docs/tutorial/lbcont3.png +++ b/docs/tutorial/multiple3.png diff --git a/docs/tutorial/lbcont4.png b/docs/tutorial/multiple4.png Binary files differindex de655ab..de655ab 100644 --- a/docs/tutorial/lbcont4.png +++ b/docs/tutorial/multiple4.png diff --git a/docs/tutorial/edit.py b/docs/tutorial/qa.py index b7d9817..b7d9817 100644 --- a/docs/tutorial/edit.py +++ b/docs/tutorial/qa.py diff --git a/docs/tutorial/edit.py.xdotool b/docs/tutorial/qa.py.xdotool index af7d3f2..af7d3f2 100644 --- a/docs/tutorial/edit.py.xdotool +++ b/docs/tutorial/qa.py.xdotool diff --git a/docs/tutorial/edit1.png b/docs/tutorial/qa1.png Binary files differindex c1d180d..c1d180d 100644 --- a/docs/tutorial/edit1.png +++ b/docs/tutorial/qa1.png diff --git a/docs/tutorial/edit2.png b/docs/tutorial/qa2.png Binary files differindex e6d6270..e6d6270 100644 --- a/docs/tutorial/edit2.png +++ b/docs/tutorial/qa2.png diff --git a/docs/tutorial/edit3.png b/docs/tutorial/qa3.png Binary files differindex f94ef28..f94ef28 100644 --- a/docs/tutorial/edit3.png +++ b/docs/tutorial/qa3.png diff --git a/docs/tutorial/frlb.py b/docs/tutorial/sig.py index c01c1b2..c01c1b2 100644 --- a/docs/tutorial/frlb.py +++ b/docs/tutorial/sig.py diff --git a/docs/tutorial/frlb.py.xdotool b/docs/tutorial/sig.py.xdotool index 02a1690..02a1690 100644 --- a/docs/tutorial/frlb.py.xdotool +++ b/docs/tutorial/sig.py.xdotool diff --git a/docs/tutorial/frlb1.png b/docs/tutorial/sig1.png Binary files differindex b5c45be..b5c45be 100644 --- a/docs/tutorial/frlb1.png +++ b/docs/tutorial/sig1.png diff --git a/docs/tutorial/frlb2.png b/docs/tutorial/sig2.png Binary files differindex dfe9526..dfe9526 100644 --- a/docs/tutorial/frlb2.png +++ b/docs/tutorial/sig2.png diff --git a/docs/tutorial/frlb3.png b/docs/tutorial/sig3.png Binary files differindex ba3ae36..ba3ae36 100644 --- a/docs/tutorial/frlb3.png +++ b/docs/tutorial/sig3.png diff --git a/docs/tutorial/frlb4.png b/docs/tutorial/sig4.png Binary files differindex c31405b..c31405b 100644 --- a/docs/tutorial/frlb4.png +++ b/docs/tutorial/sig4.png diff --git a/docs/tutorial/menu1.py b/docs/tutorial/smenu.py index dea050e..dea050e 100644 --- a/docs/tutorial/menu1.py +++ b/docs/tutorial/smenu.py diff --git a/docs/tutorial/menu1.py.xdotool b/docs/tutorial/smenu.py.xdotool index 3ef7d5c..3ef7d5c 100644 --- a/docs/tutorial/menu1.py.xdotool +++ b/docs/tutorial/smenu.py.xdotool diff --git a/docs/tutorial/menu11.png b/docs/tutorial/smenu1.png Binary files differindex 73b8235..73b8235 100644 --- a/docs/tutorial/menu11.png +++ b/docs/tutorial/smenu1.png diff --git a/docs/tutorial/menu12.png b/docs/tutorial/smenu2.png Binary files differindex 6fe32d3..6fe32d3 100644 --- a/docs/tutorial/menu12.png +++ b/docs/tutorial/smenu2.png diff --git a/docs/tutorial/menu13.png b/docs/tutorial/smenu3.png Binary files differindex 775d841..775d841 100644 --- a/docs/tutorial/menu13.png +++ b/docs/tutorial/smenu3.png |