Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.097 X-Spam-Evidence: '*H*': 0.81; '*S*': 0.00; 'sys': 0.07; 'friday,': 0.09; 'subject:using': 0.09; 'clear.': 0.16; 'dots': 0.16; 'guys,': 0.16; 'periods': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'basically': 0.19; 'typing': 0.19; 'work,': 0.20; 'appears': 0.22; 'cc:addr:gmail.com': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'cc:2**0': 0.24; '>': 0.26; 'header:In-Reply-To:1': 0.27; 'appear': 0.29; 'loading': 0.31; 'received:10.20.15': 0.31; 'received:10.20.18': 0.31; 'received:10.20.55': 0.31; 'received:eigbox.net': 0.31; 'figure': 0.32; 'received:10.20': 0.33; 'received:66': 0.35; 'but': 0.35; 'url:rec-html40': 0.35; 'words,': 0.36; 'next': 0.36; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'received:10': 0.37; 'skip:& 10': 0.38; 'to:addr:python- list': 0.38; 'skip:& 20': 0.39; 'does': 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'how': 0.40; 'letters': 0.60; 'slowly': 0.60; 'most': 0.60; 'show': 0.63; 'happen': 0.63; 'life': 0.66; 'line,': 0.68; 'url:dtd': 0.80; '05,': 0.84; 'instantly': 0.84; 'have.': 0.93; 'url:strict': 0.95; '2013': 0.98 X-Authority-Analysis: v=2.0 cv=bNyU0YCZ c=1 sm=1 a=NcsdptH/KDG/vgqacdE7hA==:17 a=spKFjZujUncA:10 a=2Cs5qbXtQ68A:10 a=ldR8UkPKgbgA:10 a=OmMKortqy18A:10 a=tTExfe6FAAAA:8 a=HVW40oqUTUUA:10 a=8ONGxiEqAAAA:8 a=GoroR5_0wjxaOtv7iUMA:9 a=CjuIK1q_8ugA:10 a=P3uMDV8RXKwA:10 a=SSmOFEACAAAA:8 a=_W_S_7VecoQA:10 a=frz4AuCg-hUA:10 a=qMDZ_Ezp4_0A:10 a=vchVONZFXVgp8x1D:21 a=+tcVrJynzLVJ9yqDAOBWjQ==:117 X-EN-OrigOutIP: 10.20.18.9 X-EN-IMPSID: LFbQ1l00D0BkY8i01FbQAA From: inq1ltd To: python-list@python.org Subject: Re: Typing letters slowly using sys Date: Fri, 05 Apr 2013 11:39:21 -0400 User-Agent: KMail/4.7.2 (Linux/2.6.37.6-24-desktop; KDE/4.7.2; i686; ; ) In-Reply-To: References: <44fa9565-c6cd-4a46-ad28-97417b403444@googlegroups.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="nextPart2986595.XQBbDqa5Yi" Content-Transfer-Encoding: 7Bit X-EN-UserInfo: ea107384e720a598200e9790e8ca8002:9d89a6cbd5a73a41b134431a25286195 X-EN-AuthUser: inq1ltd@inqvista.com Sender: inq1ltd X-EN-OrigIP: 71.127.134.150 X-EN-OrigHost: pool-71-127-134-150.rcmdva.east.verizon.net Cc: Matt X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 109 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365178558 news.xs4all.nl 6905 [2001:888:2000:d::a6]:55628 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42837 --nextPart2986595.XQBbDqa5Yi Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Friday, April 05, 2013 08:10:53 AM Matt wrote: > On Friday, April 5, 2013 10:04:49 AM UTC-4, Matt wrote: > > I am using sys to give the effect that I am typing letters slowly. > > Basically what I want to have happen is have it show "Loading......" > > with the word loading appearing instantly and then the periods > > appearing slowly, as most loading screens do. > > > > This is what I have. > > > > > > > > dots = ('............') > > > > for x in dots: > > sys.stdout.write(x) > > > > sys.stdout.flush() > > > > time.sleep(0.2) > > > > I cannot for the life of me figure out how to get the dots to appear on > > the same line as "Loading". Every way that I have attempted, the word > > "Loading" appears and then the dots appear on the next line. > Sorry guys, I may have not been clear. The part I pasted does work, but I > cannot figure out how to get that to print after the word "Loading". So it > will instantly print "Loading", and then the "..........." will appear > slowly if you can write the dots on one one line, then try writing the word with an additional dot. Loading . Loading . . Loading . . . in other words, over write the word Loading with one additional dot each time a dot is called for. jd inqvista.com --nextPart2986595.XQBbDqa5Yi Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

On Friday, April 05, 2013 08:10:53 AM Matt wrote:

> On Friday, April 5, 2013 10:04:49 AM UTC-4, Matt wrote:

> > I am using sys to give the effect that I am typing letters slowly.

> > Basically what I want to have happen is have it show "Loading......"

> > with the word loading appearing instantly and then the periods

> > appearing slowly, as most loading screens do.

> >

> > This is what I have.

> >

> >

> >

> > dots = ('............')

> >

> > for x in dots:

> > sys.stdout.write(x)

> >

> > sys.stdout.flush()

> >

> > time.sleep(0.2)

> >

> > I cannot for the life of me figure out how to get the dots to appear on

> > the same line as "Loading". Every way that I have attempted, the word

> > "Loading" appears and then the dots appear on the next line.

> Sorry guys, I may have not been clear. The part I pasted does work, but I

> cannot figure out how to get that to print after the word "Loading". So it

> will instantly print "Loading", and then the "..........." will appear

> slowly

 

if you can write the dots on one one line, then try writing the word

with an additional dot.

Loading .

Loading . .

Loading . . .

 

in other words, over write the word Loading with one

additional dot each time a dot is called for.

 

jd

inqvista.com

 

 

 

 

 

 

 

 

--nextPart2986595.XQBbDqa5Yi--