diff options
author | Ian Ward <ian@excess.org> | 2014-01-01 18:41:44 -0500 |
---|---|---|
committer | Ian Ward <ian@excess.org> | 2014-01-01 18:41:44 -0500 |
commit | 6ce8dd0b84ba165f2b92041a9f37f0793832d3dc (patch) | |
tree | 4e7c4617edb93d29cca2dbfaaf263ce069c1aad6 | |
parent | 312b6afe2db88e54795c48c94411cd36dbdb19fc (diff) | |
download | urwid-6ce8dd0b84ba165f2b92041a9f37f0793832d3dc.tar.gz |
docs: remove unused lbscr example
-rw-r--r-- | docs/tutorial/lbscr.py | 30 | ||||
-rw-r--r-- | docs/tutorial/lbscr.py.xdotool | 9 | ||||
-rw-r--r-- | docs/tutorial/lbscr1.png | bin | 627 -> 0 bytes | |||
-rw-r--r-- | docs/tutorial/lbscr2.png | bin | 769 -> 0 bytes | |||
-rw-r--r-- | docs/tutorial/lbscr3.png | bin | 666 -> 0 bytes | |||
-rw-r--r-- | docs/tutorial/lbscr4.png | bin | 600 -> 0 bytes | |||
-rw-r--r-- | docs/tutorial/lbscr5.png | bin | 595 -> 0 bytes | |||
-rw-r--r-- | docs/tutorial/lbscr6.png | bin | 600 -> 0 bytes | |||
-rw-r--r-- | docs/tutorial/lbscr7.png | bin | 718 -> 0 bytes | |||
-rw-r--r-- | docs/tutorial/lbscr8.png | bin | 710 -> 0 bytes | |||
-rw-r--r-- | docs/tutorial/lbscr9.png | bin | 714 -> 0 bytes |
11 files changed, 0 insertions, 39 deletions
diff --git a/docs/tutorial/lbscr.py b/docs/tutorial/lbscr.py deleted file mode 100644 index 9536549..0000000 --- a/docs/tutorial/lbscr.py +++ /dev/null @@ -1,30 +0,0 @@ -import urwid - -def show_all_input(keys, raw): - """make keys pressed visible to the user""" - show_key.set_text(u"Pressed: " + u" ".join([ - unicode(k) for k in keys])) - return keys - -def exit_on_cr(key): - if key == 'enter': - raise urwid.ExitMainLoop() - -palette = [('header', 'white', 'black'), - ('reveal focus', 'black', 'dark cyan', 'standout'),] - -div = urwid.Divider(u"-") -content = urwid.SimpleListWalker([ - urwid.AttrMap(w, None, 'reveal focus') for w in [ - urwid.Text(u"This is a text string that is fairly long"), - urwid.Divider(u"-"),] + [ - urwid.Text(u"Numbers %d" % i) for i in range(40)] + [ - urwid.Divider(u"-"), - urwid.Text(u"The end."),]]) -listbox = urwid.ListBox(content) -show_key = urwid.Text(u"", wrap='clip') -head = urwid.AttrMap(show_key, 'header') -top = urwid.Frame(listbox, head) -loop = urwid.MainLoop(top, palette, input_filter=show_all_input, - unhandled_input=exit_on_cr) -loop.run() diff --git a/docs/tutorial/lbscr.py.xdotool b/docs/tutorial/lbscr.py.xdotool deleted file mode 100644 index 9f733dd..0000000 --- a/docs/tutorial/lbscr.py.xdotool +++ /dev/null @@ -1,9 +0,0 @@ -windowsize --usehints $RXVTWINDOWID 15 7 -key --window $RXVTWINDOWID Down -key --window $RXVTWINDOWID Down -key --window $RXVTWINDOWID Down -key --window $RXVTWINDOWID Up -key --window $RXVTWINDOWID Down -windowsize --usehints $RXVTWINDOWID 20 9 -windowsize --usehints $RXVTWINDOWID 25 7 -windowsize --usehints $RXVTWINDOWID 11 13 diff --git a/docs/tutorial/lbscr1.png b/docs/tutorial/lbscr1.png Binary files differdeleted file mode 100644 index a938a66..0000000 --- a/docs/tutorial/lbscr1.png +++ /dev/null diff --git a/docs/tutorial/lbscr2.png b/docs/tutorial/lbscr2.png Binary files differdeleted file mode 100644 index 130032e..0000000 --- a/docs/tutorial/lbscr2.png +++ /dev/null diff --git a/docs/tutorial/lbscr3.png b/docs/tutorial/lbscr3.png Binary files differdeleted file mode 100644 index 8adf3d9..0000000 --- a/docs/tutorial/lbscr3.png +++ /dev/null diff --git a/docs/tutorial/lbscr4.png b/docs/tutorial/lbscr4.png Binary files differdeleted file mode 100644 index 81aa77d..0000000 --- a/docs/tutorial/lbscr4.png +++ /dev/null diff --git a/docs/tutorial/lbscr5.png b/docs/tutorial/lbscr5.png Binary files differdeleted file mode 100644 index 9861422..0000000 --- a/docs/tutorial/lbscr5.png +++ /dev/null diff --git a/docs/tutorial/lbscr6.png b/docs/tutorial/lbscr6.png Binary files differdeleted file mode 100644 index 81aa77d..0000000 --- a/docs/tutorial/lbscr6.png +++ /dev/null diff --git a/docs/tutorial/lbscr7.png b/docs/tutorial/lbscr7.png Binary files differdeleted file mode 100644 index 9ccac3d..0000000 --- a/docs/tutorial/lbscr7.png +++ /dev/null diff --git a/docs/tutorial/lbscr8.png b/docs/tutorial/lbscr8.png Binary files differdeleted file mode 100644 index 61e7752..0000000 --- a/docs/tutorial/lbscr8.png +++ /dev/null diff --git a/docs/tutorial/lbscr9.png b/docs/tutorial/lbscr9.png Binary files differdeleted file mode 100644 index 9a5f337..0000000 --- a/docs/tutorial/lbscr9.png +++ /dev/null |