Commit graph

152 commits

Author SHA1 Message Date
Guido van Rossum 4c6d0c7382 Several wishes fulfilled. 1999-04-22 22:32:32 +00:00
Guido van Rossum 70f6d99753 Moved classes OnDemandOutputWindow and PseudoFile here,
from ScriptBinding.py where they are no longer needed.
1999-04-22 22:28:42 +00:00
Guido van Rossum 1f3de5d7b9 Mostly rewritten. Instead of the old Run module and Debug module,
there are two new commands:

Import module (F5) imports or reloads the module and also adds its
name to the __main__ namespace.  This gets executed in the PyShell
window under control of its debug settings.

Run script (Control-F5) is similar but executes the contents of the
file directly in the __main__ namespace.
1999-04-22 22:27:40 +00:00
Guido van Rossum 27f550cdd5 Nits: document use of $IDLESTARTUP; display idle version 1999-04-22 20:56:23 +00:00
Guido van Rossum e1e1488319 New version to celebrate new command line 1999-04-22 20:50:52 +00:00
Guido van Rossum 3d0ff00c08 Added flush(), for completeness. 1999-04-22 20:50:33 +00:00
Guido van Rossum eeb88076e7 A lot of changes to make the command line more useful. You can now do:
idle.py -e file ...    -- to edit files
  idle.py script arg ... -- to run a script
  idle.py -c cmd arg ... -- to run a command
Other options, see also the usage message (also new!) for more details:
  -d       -- enable debugger
  -s       -- run $IDLESTARTUP or $PYTHONSTARTUP
  -t title -- set Python Shell window's title
sys.argv is set accordingly, unless -e is used.
sys.path is absolutized, and all relevant paths are inserted into it.

Other changes:
- the environment in which commands are executed is now the __main__ module
- explicitly save sys.stdout etc., don't restore from sys.__stdout__
- new interpreter methods execsource(), execfile(), stuffsource()
- a few small nits
1999-04-22 20:49:35 +00:00
Guido van Rossum 9f5362bfa6 Some more TODO items. Made up my mind about command line args,
Run/Import, __main__.
1999-04-22 14:07:33 +00:00
Guido van Rossum e62e76c383 Super-elegant patch by Tim Peters that speeds up colorization
dramatically (up to 15 times he claims).  Works by reading more than
one line at a time, up to 100-line chunks (starting with one line and
then doubling up to the limit).  On a typical machine (e.g. Tim's
P5-166) this doesn't reduce interactive responsiveness in a noticeable
way.
1999-04-22 13:38:40 +00:00
Guido van Rossum da4b25e0d9 Patch by Tim Peters to speed up colorizing of big multiline strings. 1999-04-21 15:49:34 +00:00
Guido van Rossum 79d4398c30 For an event 'foo-bar', the corresponding method must be called
foo_bar_event().  Therefore, fix the references to zoom_height() in
the example.
1999-04-20 17:32:52 +00:00
Guido van Rossum a670d0c97b Restored the original IDLE color scheme. 1999-04-20 15:58:29 +00:00
Guido van Rossum 7de697597e Color preferences code by Loren Luke (massaged by me somewhat) 1999-04-20 15:45:30 +00:00
Guido van Rossum cfb819ee51 Patch by Mark Favas: it fixes the search engine behaviour where an
unsuccessful search wraps around and re-searches that part of the file
between the start of the search and the end of the file - only really
an issue for very large files, but... (also removes a redundant
m.span() call).
1999-04-20 15:00:00 +00:00
Guido van Rossum 0a2818fe5b A few wishes are now fulfilled. 1999-04-19 16:26:02 +00:00
Guido van Rossum 17c516eacb Tim Peters implements some of my wishes:
o Makes the tab key intelligently insert spaces when appropriate (see Help
list banter twixt David Ascher and me; idea stolen from every other editor
on earth <wink>).

o newline_and_indent_event trims trailing whitespace on the old line (pymode
and Codewright).

o newline_and_indent_event no longer fooled by trailing whitespace or
comment after ":" (pymode, PTUI).

o newline_and_indent_event now reduces the new line's indentation after
return, break, continue, raise and pass stmts (pymode).

The last two are easy to fool in the presence of strings & continuations,
but pymode requires Emacs's high-powered C parsing functions to avoid that
in finite time.
1999-04-19 16:23:15 +00:00
Guido van Rossum 21ad59f1ee # TODO entries changed 1999-04-08 20:28:42 +00:00
Guido van Rossum 00b6d0f224 New change log. 1999-04-07 18:43:22 +00:00
Guido van Rossum a2ca434cfc New version. 1999-04-07 18:41:59 +00:00
Guido van Rossum a99c5db3aa Version bump awaiting impending new release.
(Not much has changed :-( )
1999-04-07 18:27:29 +00:00
Guido van Rossum 825df2a14d At Tim Peters' recommendation, add a dummy flush() method to PseudoFile. 1999-03-29 14:52:28 +00:00
Guido van Rossum dd58416f39 Don't crash when sys.path contains an empty string. 1999-03-11 23:21:23 +00:00
Guido van Rossum 49c7bc416e This file was never supposed to be part of IDLE. 1999-03-11 16:51:23 +00:00
Guido van Rossum b62e877631 - Don't crash in the case where a superclass is a string instead of a
pyclbr.Class object; this can happen when the superclass is
unrecognizable (to pyclbr), e.g. when module renaming is used.

- Show a watch cursor when calling pyclbr (since it may take a while
recursively parsing imported modules!).
1999-03-11 16:37:13 +00:00
Guido van Rossum d6e8713f81 Add PathBrowser to File module 1999-03-10 05:18:02 +00:00
Guido van Rossum a917af7fc7 "Path browser" - 4 scrolled lists displaying:
directories on sys.path
    modules in selected directory
    classes in selected module
    methods of selected class

Sinlge clicking in a directory, module or class item updates the next
column with info about the selected item.  Double clicking in a
module, class or method item opens the file (and selects the clicked
item if it is a class or method).

I guess eventually I should be using a tree widget for this, but the
ones I've seen don't work well enough, so for now I use the old
Smalltalk or NeXT style multi-column hierarchical browser.
1999-03-10 05:17:28 +00:00
Guido van Rossum dc424be5af New utility: multiple scrolled lists in parallel 1999-03-10 05:13:29 +00:00
Guido van Rossum ac1cb16efb - White background.
- Display "(None)" (or text of your choosing) when empty.
- Don't set the focus.
1999-03-10 05:10:49 +00:00
Guido van Rossum a89b98f4c0 News in 0.3. 1999-02-17 22:47:41 +00:00
Guido van Rossum dce019ed79 Bump version to 0.3. 1999-02-17 17:37:24 +00:00
Guido van Rossum 8f2918f4fa After all, we don't need to call the callbacks ourselves! 1999-02-17 17:34:58 +00:00
Guido van Rossum be5f2f1cb5 When deleting, call the callbacks *after* deleting the window from our list! 1999-02-17 17:34:25 +00:00
Guido van Rossum c4f752f803 Fix up the Windows menu via the new callback mechanism instead of
depending on menu post commands (which don't work when the menu is
torn off).
1999-02-17 17:20:50 +00:00
Guido van Rossum 5437ddfa36 Support callbacks to patch up Windows menus everywhere. 1999-02-17 17:19:37 +00:00
Guido van Rossum a79a93ff73 Oh, why not. Checking in the Emacs-generated change log. 1999-02-17 16:20:08 +00:00
Guido van Rossum 9ea32898db Only pop up the stack viewer when requested in the Debug menu. 1999-02-16 22:34:17 +00:00
Guido van Rossum ec119a3fc9 Don't crash if a window no longer exists. 1999-02-08 22:27:49 +00:00
Guido van Rossum 5ec13c5318 Restructured a bit. 1999-02-08 22:27:18 +00:00
Guido van Rossum 8e47306b99 Add current dir or paths of file args to sys.path. 1999-02-01 23:06:17 +00:00
Guido van Rossum 2e9e0dfca3 Add canonic() function -- for brand new bdb.py feature. 1999-02-01 19:35:33 +00:00
Guido van Rossum 14b2d30b11 Protect against accessing an empty stack. 1999-02-01 19:34:53 +00:00
Guido van Rossum 38a5a3b3f1 Use only the height to decide whether to zoom in or out. 1999-01-29 20:44:45 +00:00
Guido van Rossum b7ebb83ad0 Make sure the Tcl variables are shared between windows. 1999-01-28 22:24:30 +00:00
Guido van Rossum 07ec896707 Move menu/key binding code from Bindings.py to EditorWindow.py,
with changed APIs -- it makes much more sense there.
Also add a new feature: if the first character of a menu label is
a '!', it gets a checkbox.  Checkboxes are bound to Boolean Tcl variables
that can be accessed through the new getvar/setvar/getrawvar API;
the variable is named after the event to which the menu is bound.
1999-01-28 22:02:47 +00:00
Guido van Rossum 85ef9dce9f Add Quit button to the debugger window. 1999-01-28 22:00:30 +00:00
Guido van Rossum 959c937382 When find_again() finds exactly the current selection, it's a failure. 1999-01-28 19:04:01 +00:00
Guido van Rossum 3d58bcd5d9 Rename idle -> idle.py 1999-01-28 18:50:31 +00:00
Guido van Rossum 36911a1ca9 Only deiconify when iconic. 1999-01-18 15:18:57 +00:00
Guido van Rossum f87240f447 Misc 1999-01-18 15:18:34 +00:00
Guido van Rossum 894ee6f668 Renamed test.py to testcode.py so one can import Python's
test package from inside IDLE.  (Suggested by Jack Jansen.)
1999-01-12 22:14:34 +00:00