1

Just wondering if there's a way to close the terminal with a python script in an if else statement. I know how to exit a program with "exit( 0 )" but is there a way to actually close the terminal, like when you hit "X" or Alt + F4?

Thanks! (I'm new to python so I don't know much, sorry.)

Gray Noneya
  • 89
  • 3
  • 7

0 Answers0