471,325 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

Clear IDLE

I was wondering, what is the code to clear out IDLE? I tried os.system('cls') but that didn't work.
Aug 27 '07 #1
2 4225
bartonc
6,596 Expert 4TB
I was wondering, what is the code to clear out IDLE? I tried os.system('cls') but that didn't work.
Lets see if I can make this make sense.
Idle is really just another application on your system. It is implemented in python using the Tkinter modules. It integrates a python interpreter and a Tkinter Text() object. Since ctrl-A, backspace doesn't work the way it should (because Tk Text objects are quite poor at implementing almost all functions that a real text widget needs), you'd need to know enough Tk/python to go in and add a function bound to a key sequence (or menu or button) to the interpreter window.

The best thing to do is get a better IDE. See Look into IDE options for Python in the Articles section.
Aug 27 '07 #2
Lets see if I can make this make sense.
Idle is really just another application on your system. It is implemented in python using the Tkinter modules. It integrates a python interpreter and a Tkinter Text() object. Since ctrl-A, backspace doesn't work the way it should (because Tk Text objects are quite poor at implementing almost all functions that a real text widget needs), you'd need to know enough Tk/python to go in and add a function bound to a key sequence (or menu or button) to the interpreter window.

The best thing to do is get a better IDE. See Look into IDE options for Python in the Articles section.
Well its not worth getting a new IDE just so I can clear the screen, it's not a top priority. Thanks for the help though
Aug 28 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

16 posts views Thread by Kerry Neilson | last post: by
1 post views Thread by Moosebumps | last post: by
1 post views Thread by dbrown2 | last post: by
8 posts views Thread by Jonathan Polley | last post: by
19 posts views Thread by Frank Rizzo | last post: by
7 posts views Thread by iwdu15 | last post: by
reply views Thread by Stefan Felkel | last post: by
5 posts views Thread by Russ P. | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.