[Tutor] Need help with running the things I made

Kalle Svensson kalle@lysator.liu.se
Mon Dec 2 21:10:02 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[chipsdw.com Webmaster]
> I'm new here, but I have a question.

Welcome to the list!

> Im a kid so I have made many things to help me with my
> homework... things like caculators fehrenhiet to celcius converters
> etc. When I use IDLE to run them they run fine with no bugs, BUT
> when I just click on them and that cmd prompt looking thing comes
> up, you type the first number, say 2 then u type the second number
> say 3, and it is supposed to do 2x3. All I see is a last line of
> white text that I can't see which I presume is the answer, but once
> it displays it for a fraction of a second, not enough time to read
> it, it closes the script since It has nothing more to do. How can I
> stop this?

One solution is to add a line like

  raw_input("Press enter to close.")

to the end of your program.  This isn't very elegant, but I'm afraid I
don't know of any better way to fix this.

Peace,
  Kalle
- -- 
Kalle Svensson, http://www.juckapan.org/~kalle/
Student, root and saint in the Church of Emacs.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>

iD8DBQE97BJqdNeA1787sd0RAlmxAKDLv2zEfLkCx6i6sdgPa4I175n7+ACggns/
l3haPRMNf2wtm+EJlzxj7A0=
=acmz
-----END PGP SIGNATURE-----