Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Close IDLE display window?
#11
IDLE is open source and largely (entirely?) written in Python. If you want to dive into it, you can definitely find a way to do it. But generally, it sounds like you want things from IDLE that it is not built to support.

You haven't elaborated on why IDLE is preferable over command line. Perhaps if you did, we could pose an alternative. For example, you might use pythonw.exe instead of python.exe and write your own GUI code to accomplish whatever IDLE is doing for you. You also might be able to use a batch file instead of the direct Python script to accommodate any undesirable behavior from command line.
Reply
#12
Quote:I do know that there is also no such thing as CLS to clear it either.
CLS on windows command prompt or close on linux terminal clears the system terminal. But IDLE is just an IDE. The >>> in IDLE meshes output and python intpereter input. ITs not a system terminal. If you dont like that IDE, then dont use it. There are hundreds of IDE's that are better than IDLE anyways.

If you want no remnants of the program afterwords. Click X and be done with it. The options are pythonw.exe, build an exe out of your python program, or run it in a terminal/command prompt.
Recommended Tutorials:
Reply
#13
IDLE is a minimal system. It doesn't contain hooks that will do what you are attempting to do,
unless you kill the process as suggested by Metulburr (which I agree is ridiculous)
IDLE is a poor choice to start with,see: https://inventwithpython.com/blog/2011/1...would-fix/
Reply
#14
At the moment, it depends on what the Computer Science department at the University decides what is on the computers. I just started on Python/IDLE two weeks ago. I have started to check Kivy and for HTML PhoneGap.

I am sure that IDLE is the EDLIN of editors.....
Reply
#15
Then just use a command prompt/terminal to execute the program. That would be the easiest solution for you.
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to call and focus any popup window outside of the main window app? Valjean 6 1,744 Oct-02-2023, 04:11 PM
Last Post: deanhystad
  What is all the info in the info window in Idle? Pedroski55 3 682 Jul-08-2023, 11:26 AM
Last Post: DeaD_EyE
  How to display <IPython.core.display.HTML object>? pythopen 3 45,910 May-06-2023, 08:14 AM
Last Post: pramod08728
  Pyspark Window: perform sum over a window with specific conditions Shena76 0 1,167 Jun-13-2022, 08:59 AM
Last Post: Shena76
  How can I display dictionary in a gui window in Python? C0D3R 2 1,722 Apr-07-2022, 07:33 PM
Last Post: C0D3R
  Closing Threads and the chrome window it spawned from Tkinter close button law 0 1,698 Jan-08-2022, 12:13 PM
Last Post: law
  How to automatically close mathplotlib output window? Pedroski55 2 1,928 Jun-17-2021, 09:00 AM
Last Post: Pedroski55
  IDLE editing window no longer works chris1 2 2,192 Feb-06-2021, 07:59 AM
Last Post: chris1
Information Unable to display joystick's value from Python onto display box MelfoyGray 2 2,223 Nov-11-2020, 02:23 AM
Last Post: MelfoyGray
  IDLE not importing pygame (ok outside of IDLE) miner_tom 1 3,316 Sep-14-2018, 07:54 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020