summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Ivanov <pi@berkeley.edu>2014-02-20 23:51:21 -0800
committerPaul Ivanov <pi@berkeley.edu>2014-02-21 08:40:51 -0800
commitaf4c2c4590ced0131e14764f1e50e5e13b22eeb2 (patch)
tree6a313d83fbe69486845d29bb097be4e3d515d4e1
parent127ecfd29b51a5e72b87f70eaafb9fc0f6f2d870 (diff)
downloadurwid-af4c2c4590ced0131e14764f1e50e5e13b22eeb2.tar.gz
fix typos in examples
-rwxr-xr-xexamples/calc.py2
-rwxr-xr-xexamples/dialog.py2
-rwxr-xr-xexamples/fib.py2
-rwxr-xr-xexamples/lcd_cf635.py4
-rwxr-xr-xexamples/tour.py2
-rw-r--r--examples/twisted_serve_ssh.py4
6 files changed, 8 insertions, 8 deletions
diff --git a/examples/calc.py b/examples/calc.py
index a40259f..f132172 100755
--- a/examples/calc.py
+++ b/examples/calc.py
@@ -734,7 +734,7 @@ class CalcDisplay:
# keep only the non-children
self.col_list[i:] = keep_right_cols
- # fix the letter assigmnents
+ # fix the letter assignments
for j in range(i, len(self.col_list)):
col = self.col_list[j]
# fix the column heading
diff --git a/examples/dialog.py b/examples/dialog.py
index 7de86d5..2de61c0 100755
--- a/examples/dialog.py
+++ b/examples/dialog.py
@@ -206,7 +206,7 @@ class ListDialogDisplay(DialogDisplay):
class CheckListDialogDisplay(ListDialogDisplay):
def on_exit(self, exitcode):
"""
- Mimick dialog(1)'s --checklist exit.
+ Mimic dialog(1)'s --checklist exit.
Put each checked item in double quotes with a trailing space.
"""
if exitcode != 0:
diff --git a/examples/fib.py b/examples/fib.py
index 4439129..7f8d4b7 100755
--- a/examples/fib.py
+++ b/examples/fib.py
@@ -32,7 +32,7 @@ import urwid
class FibonacciWalker(urwid.ListWalker):
"""ListWalker-compatible class for browsing fibonacci set.
- positions returned are (value at position-1, value at poistion) tuples.
+ positions returned are (value at position-1, value at position) tuples.
"""
def __init__(self):
self.focus = (0L,1L)
diff --git a/examples/lcd_cf635.py b/examples/lcd_cf635.py
index e01ead2..77e8f17 100755
--- a/examples/lcd_cf635.py
+++ b/examples/lcd_cf635.py
@@ -104,7 +104,7 @@ class LCDProgressBar(urwid.FlowWidget):
Update and return the value one step +ve or -ve, based on
the size of the displayed bar.
- directon -- 1 for +ve, 0 for -ve
+ direction -- 1 for +ve, 0 for -ve
"""
steps = self.get_steps(size)
filled = urwid.int_scale(self.value, self.range, steps)
@@ -249,7 +249,7 @@ def build_menus():
urwid.Text("This is a demo of Urwid's CF635Display "
"module. If you need an interface for a limited "
"character display device this should serve as a "
- "good example for implmenting your own display "
+ "good example for implementing your own display "
"module and menu-driven application."),
])
]
diff --git a/examples/tour.py b/examples/tour.py
index d0a9a48..fedfb59 100755
--- a/examples/tour.py
+++ b/examples/tour.py
@@ -122,7 +122,7 @@ def main():
text_cb_list = [u"Wax", u"Wash", u"Buff", u"Clear Coat", u"Dry",
u"Racing Stripe"]
text_rb_list = [u"Morning", u"Afternoon", u"Evening", u"Weekend"]
- text_listbox = [u"All these widgets have been diplayed "
+ text_listbox = [u"All these widgets have been displayed "
u"with the help of a ", ('important', u"ListBox"), u" widget. "
u"ListBox widgets handle scrolling and changing focus. A ",
('important', u"Frame"), u" widget is used to keep the "
diff --git a/examples/twisted_serve_ssh.py b/examples/twisted_serve_ssh.py
index 64dcdc7..36396dd 100644
--- a/examples/twisted_serve_ssh.py
+++ b/examples/twisted_serve_ssh.py
@@ -168,7 +168,7 @@ class TwistedScreen(urwid.BaseScreen):
1. Input
2. Output
- Input is achieved in normal urwid by passing a lsit of available readable
+ Input is achieved in normal urwid by passing a list of available readable
file descriptors to the event loop for polling/selecting etc. In the
Twisted situation, this is not necessary because Twisted polls the input
descriptors itself. Urwid allows this by being driven using the main loop
@@ -265,7 +265,7 @@ class TwistedScreen(urwid.BaseScreen):
# Private
def _on_update_palette_entry(self, name, *attrspecs):
- # copy the attribute to a dictionary containing the escape seqences
+ # copy the attribute to a dictionary containing the escape sequences
self._pal_escape[name] = self._attrspec_to_escape(
attrspecs[{16:0,1:1,88:2,256:3}[self.colors]])