summaryrefslogtreecommitdiffstats
path: root/Tools/idle/EditorWindow.py
Commit message (Collapse)AuthorAgeFilesLines
* SF bug #652933 (for IdleFork): Open Module "math" FailsRaymond Hettinger2003-01-071-1/+4
| | | | | When a module doesn't have a __path__ attribute, trigger a dialog box rather than dumping a traceback to the console.
* Apply diff2.txt from SF patch http://www.python.org/sf/572113Walter Dörwald2002-09-111-8/+7
| | | | | | | | (with one small bugfix in bgen/bgen/scantools.py) This replaces string module functions with string methods for the stuff in the Tools directory. Several uses of string.letters etc. are still remaining.
* Extended IDLE's open module menu item to handle hierarchical module names.Raymond Hettinger2002-09-081-2/+15
| | | | | | | Will look at doing something similar in import.c so that the effort won't have to be repeated elsewhere. Closes SF patch 600152.
* Patch 543222. Disable script bindings in shell window.Raymond Hettinger2002-05-211-0/+1
|
* Patch #540583: Open MS Help Docs if available.Martin v. Löwis2002-04-141-3/+12
|
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-3/+3
|
* Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smartGuido van Rossum2002-01-231-1/+1
| | | | | | | indent error Use // where int division is intended. (This breaks IDLE for use with previous Python versions -- I don't care.)
* Remove legacy support for the BrowserControl module; the webbrowserFred Drake2001-04-181-7/+3
| | | | | module has been included since Python 2.0, and that is the preferred interface.
* Implemented new os.startfile function, unique to Windows, exposing aTim Peters2000-09-221-2/+3
| | | | | | | | | | | | | | | | subset of Win32 ShellExecute's functionality. Guido wants this because IDLE's Help -> Docs function currently crashes his machine because of a conflict between his version of Norton AntiVirus (6.10.20) and MS's _popen. Docs for startfile are being mailed to Fred (or just read the docstring -- it tells the whole story). Changed webbrowser.py to use os.startfile instead of os.popen on Windows. Changed IDLE's EditorWindow.py to pass an absolute path for the docs (hardcoding ShellExecute's "directory" arg to "." as used to be done let IDLE work, but made the startfile command exceedingly obscure for other uses -- the MS docs are terrible, of course, & still not sure I understand it). Note that Windows Python must link with shell32.lib now! That's where ShellExecute lives.
* Fix typo (newtabwith).Guido van Rossum2000-09-201-1/+1
|
* Update to use the new standard webbrowser module if available, otherwiseFred Drake2000-07-091-2/+8
| | | | | | | uses the BrowserControl module. BrowserControl is not removed to allow IDLE to be distributed separately and still be used with Python 1.5.2.
* Rename the "browser" module to "BrowserControl", since Guido did notFred Drake2000-05-101-2/+2
| | | | like the short, ambiguous name.
* EditorWindow.python_docs():Fred Drake2000-05-101-5/+8
| | | | | | | Instead of using Netscape through os.system(), use the new browser.open() function to load the documentation on the default browser. On Windows, this will use the installed documentation if it exists, instead of hitting python.org.
* rename the global IdleConfParser object from IdleConf to idleconfJeremy Hylton2000-03-071-4/+4
| | | | standard usage is now from IdleConf import idleconf
* migrate to use of IdleConf and config files to set optionsJeremy Hylton2000-03-031-28/+13
| | | | | | | | | | | | | | | | | | | | | | | idle.py: Load the config files before anything else happens XXX Need to define standard way to get files relative to the IDLE install dir PyShell.py: ColorDelegator.py: Get color defns out of IdleConf instead of IdlePrefs EditorWindow.py: Replace hard-coded font & window size with config options Get extension names via IdleConf.getextensions extend.py: Obsolete. Extensions defined in config file. ParenMatch.py: Use config file for extension options. Revise comment about parser requirements. Simplify logic on find returning None.
* Add primitive customization of window size and font.Guido van Rossum2000-02-171-3/+19
| | | | A few alternative selections can be made by changing "if 0" to "if 1".
* Support for Moshe's status bar.Guido van Rossum2000-02-151-2/+20
|
* Find the help.txt file relative to __file__ or ".", not in sys.path.Guido van Rossum1999-08-261-8/+14
| | | | | | | | (Suggested by Moshe Zadka, but implemented differently.) Add <<python-docs>> event which, on Unix, brings up Netscape pointing to http://www.python.doc/current/ (a local copy would be nice but its location can't be predicted). Windows solution TBD.
* Add _close() method that does the actual cleanup (close() asks theGuido van Rossum1999-06-251-10/+26
| | | | | | | | user what they want first if there's unsaved stuff, and may cancel). It closes more than before. Add unload_extensions() method to unload all extensions; called from _close(). It calls an extension's close() method if it has one.
* Tim Peters smart.patch:Guido van Rossum1999-06-111-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EditorWindow.py: + Added get_tabwidth & set_tabwidth "virtual text" methods, that get/set the widget's view of what a tab means. + Moved TK_TABWIDTH_DEFAULT here from AutoIndent. + Renamed Mark's get_selection_index to get_selection_indices (sorry, Mark, but the name was plain wrong <wink>). FormatParagraph.py: renamed use of get_selection_index. AutoIndent.py: + Moved TK_TABWIDTH_DEFAULT to EditorWindow. + Rewrote set_indentation_params to use new VTW get/set_tabwidth methods. + Changed smart_backspace_event to delete whitespace back to closest preceding virtual tab stop or real character (note that this may require inserting characters if backspacing over a tab!). + Nuked almost references to the selection tag, in favor of using get_selection_indices. The sole exception is in set_region, for which no "set_selection" abstraction has yet been agreed upon. + Had too much fun using the spiffy new features of the format-paragraph cmd.
* Added abstraction get_selection_index() (Mark Hammond). AlsoGuido van Rossum1999-06-101-14/+23
| | | | | reformatted some comment blocks to show off a cool feature I'm about to check in next.
* New offerings by Tim Peters; he writes:Guido van Rossum1999-06-031-0/+19
| | | | | | | | | | IDLE is now the first Python editor in the Universe not confused by my doctest.py <wink>. As threatened, this defines IDLE's is_char_in_string function as a method of EditorWindow. You just need to define one similarly in whatever it is you pass as editwin to AutoIndent; looking at the EditorWindow.py part of the patch should make this clear.
* Change by Mark Hammond to allow using IDLE extensions in PythonWin asGuido van Rossum1999-06-021-0/+5
| | | | well: make three dialog routines instance variables.
* 1. Catch NameError on import (could be raised by case mismatch on Windows).Guido van Rossum1999-06-011-8/+2
| | | | | | | | 2. No longer need to reset pyclbr cache and show watch cursor when calling ClassBrowser -- the ClassBrowser takes care of pyclbr and the TreeWidget takes care of the watch cursor. 3. Reset the focus to the current window after error message about class browser on buffer without filename.
* Much improved autoindent and handling of tabs,Guido van Rossum1999-05-211-6/+10
| | | | by Tim Peters.
* Tim Peters writes:Guido van Rossum1999-05-031-0/+2
| | | | | | | | | | | | I'm still unsure, but couldn't stand the virtual event trickery so tried a different sin (adding undo_block_start/stop methods to the Text instance in EditorWindow.py). Like it or not, it's efficient and works <wink>. Better idea? Give the attached a whirl. Even if you hate the implementation, I think you'll like the results. Think I caught all the "block edit" cmds, including Format Paragraph, plus subtler ones involving smart indents and backspacing.
* Provide full arguments to __import__ so it works in packagized IDLE.Guido van Rossum1999-04-231-1/+1
|
* Color preferences code by Loren Luke (massaged by me somewhat)Guido van Rossum1999-04-201-1/+7
|
* Add PathBrowser to File moduleGuido van Rossum1999-03-101-0/+7
|
* After all, we don't need to call the callbacks ourselves!Guido van Rossum1999-02-171-1/+0
|
* Fix up the Windows menu via the new callback mechanism instead ofGuido van Rossum1999-02-171-2/+4
| | | | | depending on menu post commands (which don't work when the menu is torn off).
* Make sure the Tcl variables are shared between windows.Guido van Rossum1999-01-281-9/+8
|
* Move menu/key binding code from Bindings.py to EditorWindow.py,Guido van Rossum1999-01-281-8/+107
| | | | | | | | 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.
* Only deiconify when iconic.Guido van Rossum1999-01-181-2/+4
|
* Hack to close a window that is colorizing.Guido van Rossum1999-01-121-7/+8
|
* Set the cursor to a watch when opening the class browser (which mayGuido van Rossum1999-01-111-7/+23
| | | | | | take quite a while, browsing multiple files). Newer, better center() -- but assumes no wrapping.
* Allow tearing off of the Windows menu.Guido van Rossum1999-01-091-1/+0
|
* Checking in IDLE 0.2.Guido van Rossum1999-01-021-34/+287
| | | | | | | | | | | | Much has changed -- too much, in fact, to write down. The big news is that there's a standard way to write IDLE extensions; see extend.txt. Some sample extensions have been provided, and some existing code has been converted to extensions. Probably the biggest new user feature is a new search dialog with more options, search and replace, and even search in files (grep). This is exactly as downloaded from my laptop after returning from the holidays -- it hasn't even been tested on Unix yet.
* Support underlining of menu labelsGuido van Rossum1998-11-271-4/+5
|
* Get rid of conflicting ^X binding. Use ^W.Guido van Rossum1998-10-161-0/+1
|
* Clarify 'Open Module' dialog textGuido van Rossum1998-10-161-1/+2
|
* Add new command, "Open module". You select or type a module name,Guido van Rossum1998-10-131-0/+31
| | | | and it opens the source.
* Generalize menu creation.Guido van Rossum1998-10-121-20/+15
|
* Added a menu bar to every window.Guido van Rossum1998-10-121-1/+45
|
* Initial checking of Tk-based Python IDE.Guido van Rossum1998-10-101-0/+175
Features: text editor with syntax coloring and undo; subclassed into interactive Python shell which adds history.