diff options
author | James Cameron <quozl@laptop.org> | 2010-05-21 09:30:18 (GMT) |
---|---|---|
committer | James Cameron <quozl@laptop.org> | 2010-05-21 09:30:18 (GMT) |
commit | 4a50004aa8f2109e6cff4a082a10581dfee0d540 (patch) | |
tree | 90daf190816ac4a24515b1df907d953a576d2809 /data/string/thanks | |
parent | 0ce089fc9bb7a9f18f953a32c7195e70a62cf2b1 (diff) |
adapt pippy examples to screen dimensions, dev.laptop.org #9260
Adjust all the examples to work for different screen dimensions, and
briefly fix formatting or style in some of the other code examples.
Yet to be done:
1. slideshow, it finds no objects in journal with MIME type
image/jpeg, and as a result does not show any slides,
2. xolympics, it tests an object location against physics world
coordinates to determine winning condition.
Diffstat (limited to 'data/string/thanks')
-rw-r--r-- | data/string/thanks | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/data/string/thanks b/data/string/thanks index 52e47a3..ddd470a 100644 --- a/data/string/thanks +++ b/data/string/thanks @@ -17,14 +17,14 @@ table = { 'Directors & Advisors': 'Howard Anderson, Rebecca Allen, Ayo Kusamotu, Jose Maria Aznar, V. Michael Bove, Jr., Rodrigo Mesquita, Seymour Papert, Ted Selker, Ethan Beard (Google); John Roese (Nortel); Dandy Hsu (Quanta); Marcelo Claure (Brightstar); Gary Dillabough (eBay); Gustavo Arenas (AMD); Mike Evans (Red Hat); Ed Horowitz (SES Astra); Jeremy Philips (NewsCorp); Scott Soong (Chi Lin); Sehat Sutardja (Marvell); Joe Jacobson (MIT Media Lab); Steve Kaufman (Riverside); and Tom Meredith (MFI)', 'Pippy': 'Chris Ball, C. Scott Ananian' } - + import random, time from pippy.console import * from textwrap import fill -# Determine the number of columns in our window in -# order to wrap text to that width -- this changes -# when we run as a standalone activity instead of +# Determine the number of columns in our window in +# order to wrap text to that width -- this changes +# when we run as a standalone activity instead of # inside the output pane. cols, lines = size() @@ -36,5 +36,9 @@ while True: random.choice([red, green, yellow, blue, magenta, cyan])() #random.choice([normal, bold, underlined, inverse])() print '\n', fill("%s: %s" % (subsystem, table[subsystem]), int(cols)) + table.pop(subsystem) + if len(table) == 0: + break time.sleep(3) +reset() |