0

Still Closing despite input()

Hello im using windows and i wrote a python autoGUI programm. But it is immediatly closing after i started it. I put a closing input() that should prevent that but it doesnt. I guess it is my computer preventing it. I thought about adding a system.exit() but i dont think that would help. Code is following soon. Hope you can help me :) z77

19th Jul 2017, 11:11 AM
z77
3 Respuestas
+ 4
<< It looks like you are running something in Windows by double clicking on it. This will execute the program in a new window and close the window when it terminates. No wonder you cannot read the output. A better way to do this would be to switch to the command prompt. Navigate (cd) to the directory where the program is located and then call it using python. Something like this: C:\> cd C:\my_programs\ C:\my_programs\> python area.py Replace my_programs with the actual location of your program and area.pywith the name of your python file. >> source: https://stackoverflow.com/questions/3591807/how-can-i-stop-python-exe-from-closing-immediately-after-i-get-an-output
19th Jul 2017, 12:09 PM
visph
visph - avatar
+ 2
run your program from command prompt and see if there is an error message. mostly people forget error handling and program quits it self without warning
19th Jul 2017, 11:29 AM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 1
thanks over cmd i could figure out i had an error in my code
20th Aug 2017, 10:15 AM
z77