Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm hoping to use raw_input() inside a loop to prompt the user when s/he wants to continue running the script. However, I'm getting an error:

Traceback (most recent call last):
   File "<input>", line 1, in <module>
EOFError: EOF when reading a line

Is this function supported in qgis' python console? If not, do you have any suggestion?

I don't need to read the user's input. I just need the loop to pause for a while to let the user do some other stuff, then when ready, to resume working again.

share|improve this question
    
I'm not sure waiting for the user like this is a good idea. Why not make a UI for your script and turning it into a plugin. –  Nathan W Mar 9 '13 at 12:38
    
You're probably right Nathan. It's supposed to be a quick and dirty script, and I haven't learned how to write a plugin yet. :) oh, btw, it needs to pause because the script is also doing some counting. –  n1kn0k Mar 9 '13 at 13:32
    
The QGIS Plugin Builder plugin can give you a jump start with making your first plugin. –  katahdin Mar 11 '13 at 2:26
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.