Error running any script in IDLE
Im fairly new to Python. I was trying to run a script using IDLE and it came
back with an error and immediately shut down. After this, every script I tried
to test within IDLE would do the same. I wrote the following script:
while True
x = input("test")
It seems simple enough to not be screwed up in any way, but when I hit F5 to
test, it gets red text and shuts down IDLE. It scrolls too fast to see before
shutting down, but I right clicked the text quickly to pause it. This is what
it comes back with:
http://s21.postimg.org/4so8merdz/asdfg.png
Can anyone tell me what's going on, and why this error comes up regardless of
what script I try to run in IDLE?
If I run it in cmd, it seems to work fine.
--
http://mail.python.org/mailman/listinfo/python-list
Re: Error running any script in IDLE
Thanks Chris, that worked. Like I said, I'm fairly new to python so I am still learning the ins and outs. Thank you. -- http://mail.python.org/mailman/listinfo/python-list
Typing letters slowly using sys
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.
--
http://mail.python.org/mailman/listinfo/python-list
