ANN: Python training "text movies"

Mitya Sirenef msirenef at lightbird.net
Sun Jan 20 19:34:49 CET 2013


On 01/20/2013 12:54 PM, Franck Ditter wrote:
> In article  <nobody-A71B2D.18413120012013 at news.free.fr>,
 > Franck Ditter <nobody at nowhere.org> wrote:
 >
 >> In article <nobody-B6CD7F.18373820012013 at news.free.fr>,
 >> Franck Ditter <nobody at nowhere.org> wrote:
 >>
 >>> In article <mailman.696.1358622153.2939.python-list at python.org>,
 >>> Mitya Sirenef <msirenef at lightbird.net> wrote:
 >>>
 >>>> On 01/19/2013 04:32 AM, Franck Ditter wrote:
 >>>>> In article <mailman.488.1358146579.2939.python-list at python.org>,
 >>>>> Mitya Sirenef <msirenef at lightbird.net> wrote:
 >>>>>
 >>>>>> On 01/14/2013 01:34 AM, Franck Ditter wrote:
 >>>>>>> In article <mailman.469.1358088303.2939.python-list at python.org>,
 >>>>>>> Jason Friedman <jason at powerpull.net> wrote:
 >>>>>>>
 >>>>>>>>> That is right; I would also add that it may be overwhelming 
for a newbie
 >>>>>>>>> to be reading through a large "wall of text" -- here you have 
blank
 >>>>>>>>> space after the current paragraph so the attention is focused 
even more
 >>>>>>>>> on the last few lines.
 >>>>>>>>>
 >>>>>>>>> Additionally, since instructions scroll automatically, I can 
space them
 >>>>>>>>> out more than you would conventionally do in a manual.
 >>>>>>>>>
 >>>>>>>> Pretty cool.
 >>>>>>> When reading the source of the Web page which shows the scroll,
 >>>>>>> I can't find the reference to the text displayed. Only "text"...
 >>>>>>> How may we use the software which generates the Javascript ?
 >>>>>>> Thanks, it's cool.
 >>>>>>>
 >>>>>>> franck
 >>>>>> Thanks!
 >>>>>>
 >>>>>> the text is in var commands = ...
 >>>>>>
 >>>>>> You can download the generator script here:
 >>>>>>
 >>>>>> https://github.com/pythonbyexample/PBE/blob/master/code/jstmovie.py
 >>>>>>
 >>>>>> (you also need to grab tmovies dir)
 >>>>> When looking at the source of the page :
 >>>>> http://lightbird.net/larks/tmovies/strings.html
 >>>>> I find commands = []
 >>>>> I can't guess where the strings displayed come from...
 >>>>>
 >>>>> franck
 >>>>
 >>>> Look 10 lines below that line.
 >>>>
 >>>>
 >>>> I have also added a related page that allows you to paste your own
 >>>> text to make a movie; it's linked from the same page with the
 >>>> list of generated t-movies.
 >>>>
 >>>> (that page does not let you use typewriter effect or custom pauses
 >>>> though).
 >>>>
 >>>> - mitya
 >>>
 >>> I'm probably blind but 10 line after the line "commands = []", I find :
 >>>
 >>> var commands = [
 >>> [
 >>> "text",
 >>> " "
 >>> ],
 >>> [
 >>> "text",
 >>> " "
 >>> ],
 >>> ....]
 >>>
 >>> but nothing concrete ! How come ?
 >>>
 >>> franck
 >>
 >> OK OK found ! Thanks.
 >>
 >> franck
 >
 > When executing jstmovie.py, it complains :
 > 'template.html' not found in tmovies...
 >
 > franck
 >
 > tmovies/template.html

As I've said upthread, you need to download tmovies dir from
the same repository where jstmovie.py is located:

https://github.com/pythonbyexample/PBE/tree/master/code/


  - mitya



-- 
Lark's Tongue Guide to Python: http://lightbird.net/larks/

Admiration for a quality or an art can be so strong that it deters us from
striving to possess it.  Friedrich Nietzsche




More information about the Python-list mailing list