Suggested improvements for IDLE (non-official)

r rt8396 at gmail.com
Wed Jan 14 14:56:41 EST 2009


I actually like the IDLE, but it could use a few improvements. If
anybody else has suggestions by all means post them.

1.) The text widget and the prompt(>>>) should be separated. Trying to
write a conditional in the interactive IDLE is a real PITA. Not to
mention if you copy the working code snippet to the IDLE editor window
the indention is 8 spaces instead 4 AND you've got that prompt(>>>)
stuck in there. I have a solution for the problem though.( I hope you
all are using fixed-width font)

frm |<---------------------text widget ----------------->
>>> |
>>> |if this == 1:
... |    if that == 2:
... |        #do
... |    elif that ==3:
... |        #do
... |    else:
... |        pass
>>> |
>>> |x = 10

Basically you have a Listbox on the left for the prompt and a Text on
the right. Disable the Listbox highlight and key press events and now
we have a very friendly interactive IDLE! No more prompt hijacking
your snippets, and no more 8 space indention!

2.) When you press MMB and there is a highlighted selection in the
text it gets pasted over and over again @ the insertion cursor (gives
me the red @ss!)

Anybody want to comment or add suggestions?



More information about the Python-list mailing list