1999-01-02 17:28:54 -04:00
|
|
|
IDLE 0.2 - 01/01/99
|
1998-11-16 14:34:26 -04:00
|
|
|
-------------------
|
|
|
|
|
|
|
|
This is a *very* early preliminary release of IDLE, my own attempt at
|
1999-01-02 17:28:54 -04:00
|
|
|
a Tkinter-based IDE for Python. It has the following features:
|
1998-11-16 14:34:26 -04:00
|
|
|
|
|
|
|
- multi-window text editor with multiple undo and Python colorizing
|
|
|
|
- Python shell (a.k.a. interactive interpreter) window subclass
|
|
|
|
- debugger
|
1998-11-16 14:37:42 -04:00
|
|
|
- 100% pure Python
|
1999-01-02 17:28:54 -04:00
|
|
|
- works on Windows and Unix (probably works on Mac too)
|
1998-11-16 14:34:26 -04:00
|
|
|
|
1999-01-04 09:05:58 -04:00
|
|
|
The main program is in the file "idle"; on Windows you can use idle.pyw
|
|
|
|
to avoid popping up a DOS console. Any arguments passed are interpreted
|
|
|
|
as files that will be opened for editing.
|
1998-11-16 14:37:42 -04:00
|
|
|
|
1999-01-02 17:28:54 -04:00
|
|
|
IDLE requires Python 1.5.2, so it is currently only usable with the
|
|
|
|
Python 1.5.2 beta distribution (luckily, IDLE is bundled with Python
|
|
|
|
1.5.2).
|
1998-11-16 14:34:26 -04:00
|
|
|
|
|
|
|
Please send feedback to the Python newsgroup, comp.lang.python.
|
|
|
|
|
|
|
|
--Guido van Rossum (home page: http://www.python.org/~guido/)
|
|
|
|
|
|
|
|
======================================================================
|
|
|
|
|
1998-10-10 15:48:31 -03:00
|
|
|
TO DO:
|
|
|
|
|
1999-01-02 17:28:54 -04:00
|
|
|
- "GO" command
|
|
|
|
- "Modularize" command
|
|
|
|
- command expansion from keywords, module contents, other buffers, etc.
|
1998-10-16 17:08:34 -03:00
|
|
|
- "Recent documents" menu item
|
1998-10-10 15:48:31 -03:00
|
|
|
- more emacsisms:
|
1999-01-02 17:28:54 -04:00
|
|
|
- parentheses matching
|
1998-10-10 15:48:31 -03:00
|
|
|
- reindent, reformat text etc.
|
|
|
|
- M-[, M-] to move by paragraphs
|
|
|
|
- smart stuff with whitespace around Return
|
1998-10-13 20:49:55 -03:00
|
|
|
- filter region?
|
1999-01-02 17:28:54 -04:00
|
|
|
- incremental search?
|
|
|
|
- ^K should cut to buffer
|
|
|
|
- command to fill text paragraphs
|
|
|
|
- restructure state sensitive code to avoid testing flags all the time
|
|
|
|
- finish debugger
|
|
|
|
- object browser instead of current stack viewer
|
|
|
|
- persistent user state (e.g. window and cursor positions, bindings)
|
|
|
|
- make backups when saving
|
|
|
|
- check file mtimes at various points
|
|
|
|
- interface with RCS/CVS/Perforce ???
|
1998-10-10 15:48:31 -03:00
|
|
|
- status bar?
|
|
|
|
- better help?
|
1999-01-02 17:28:54 -04:00
|
|
|
- don't open second class browser on same module
|
1998-10-10 15:48:31 -03:00
|
|
|
|
|
|
|
Details:
|
1998-11-16 14:37:42 -04:00
|
|
|
|
1998-10-10 15:48:31 -03:00
|
|
|
- when there's a selection, left/right arrow should go to either
|
|
|
|
end of the selection
|
1999-01-02 17:28:54 -04:00
|
|
|
- ^O (on Unix -- open-line) should honor autoindent
|
|
|
|
- after paste, show end of pasted text
|
|
|
|
- on Windows, should turn short filename to long filename (not only in argv!)
|
|
|
|
(shouldn't this be done -- or undone -- by ntpath.normpath?)
|
1998-10-10 15:48:31 -03:00
|
|
|
|
|
|
|
Structural problems:
|
|
|
|
|
|
|
|
- too much knowledge in FileList about EditorWindow (for example)
|
1998-10-13 20:49:55 -03:00
|
|
|
- Several occurrences of scrollable listbox with title and certain
|
|
|
|
behavior; should create base class to generalize this
|
1998-10-10 15:48:31 -03:00
|
|
|
|
|
|
|
======================================================================
|
|
|
|
|
|
|
|
Comparison to PTUI
|
|
|
|
------------------
|
|
|
|
|
1999-01-02 17:28:54 -04:00
|
|
|
+ PTUI has a status line
|
|
|
|
|
|
|
|
+ PTUI's help is better (HTML!)
|
|
|
|
|
|
|
|
+ PTUI can attach a shell to any module
|
|
|
|
|
|
|
|
+ PTUI's auto indent is better
|
|
|
|
(understands that "if a: # blah, blah" opens a block)
|
|
|
|
|
|
|
|
+ IDLE requires 4x backspace to dedent a line
|
|
|
|
|
|
|
|
+ PTUI has more bells and whistles:
|
|
|
|
open multiple
|
|
|
|
append
|
|
|
|
modularize
|
|
|
|
examine
|
|
|
|
go
|
|
|
|
|
|
|
|
? PTUI's fontify is faster but synchronous (and still too slow);
|
|
|
|
does a lousy job if editing affects lines below
|
|
|
|
|
1998-10-10 15:48:31 -03:00
|
|
|
- PTUI's shell is worse:
|
|
|
|
no coloring;
|
|
|
|
no editing of multi-line commands;
|
|
|
|
^P seems to permanently remove some text from the buffer
|
|
|
|
|
|
|
|
- PTUI's undo is worse:
|
|
|
|
no redo;
|
|
|
|
one char at a time
|
|
|
|
|
|
|
|
- PTUI's GUI is a tad ugly:
|
1999-01-02 17:28:54 -04:00
|
|
|
I don't like the multiple buffers in one window model;
|
|
|
|
I don't like the big buttons at the top of the widow
|
1998-10-10 15:48:31 -03:00
|
|
|
|
1999-01-02 17:28:54 -04:00
|
|
|
- PTUI lacks an integrated debugger
|
1998-10-10 15:48:31 -03:00
|
|
|
|
1999-01-02 17:28:54 -04:00
|
|
|
- PTUI lacks a class browser
|
1998-10-10 15:48:31 -03:00
|
|
|
|
1999-01-02 17:28:54 -04:00
|
|
|
- PTUI lacks many of IDLE's features:
|
|
|
|
- expand word
|
|
|
|
- regular expression search
|
|
|
|
- search files (grep)
|
1998-11-16 14:34:26 -04:00
|
|
|
|
|
|
|
======================================================================
|
|
|
|
|
|
|
|
Notes after trying to run Grail
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
- Grail does stuff to sys.path based on sys.argv[0]; you must set
|
1999-01-04 09:05:58 -04:00
|
|
|
sys.argv[0] to something decent first (it is normally set to the path of
|
|
|
|
the idle script).
|
1998-11-16 14:34:26 -04:00
|
|
|
|
|
|
|
- Grail must be exec'ed in __main__ because that's imported by some
|
|
|
|
other parts of Grail.
|
|
|
|
|
|
|
|
- Grail uses a module called History and so does idle :-(
|
|
|
|
|
|
|
|
======================================================================
|