summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
Commit message (Collapse)AuthorAgeFilesLines
* Removed ability to configure tabs indent from Options dialog. This 'feature'Kurt B. Kaiser2005-01-311-12/+23
| | | | | | | | | | | | | | | | | has never worked and no one has complained. It is still possible to set a default tabs (v. spaces) indent 'manually' via config-main.def (or to turn on tabs for the current EditorWindow via the Format menu) but IDLE will encourage indentation via spaces. Enable setting the indentation width using the Options dialog. Bug # 783877 Remove some commented out old code from configDialog.py (related to old methods for invoking the HelpBrowser). M EditorWindow.py M NEWS.txt M configHandler.py
* Add keybindings for del-word-left and del-word-right.Kurt B. Kaiser2005-01-281-0/+10
| | | | | | | M EditorWindow.py M NEWS.txt M config-keys.def M configHandler.py
* 1. Polish tabbing code.Kurt B. Kaiser2005-01-191-61/+56
| | | | | | | | | | | | | | | | | 2. Restore use of set_indentation_params(), was dead code since Autoindent.py was merged into EditorWindow.py. 3. Make usetabs, indentwidth, tabwidth, context_use_ps1 instance vars and set in EditorWindow.__init__() 4. In PyShell.__init__() set usetabs, indentwidth and context_use_ps1 explicitly (config() is eliminated). 5. Add Tabnanny check when Module is Run/F5, not just when Checked. 6. Discourage using an indent width other than 8 when using tabs to indent Python code. M EditorWindow.py M NEWS.txt M PyShell.py M ScriptBinding.py
* If an extension can't be loaded, print warning and skip it instead ofKurt B. Kaiser2005-01-181-2/+5
| | | | erroring out.
* The remote procedure call module rpc.py can now access data attributes ofKurt B. Kaiser2004-12-211-2/+2
| | | | | | | | | | | remote registered objects. Changes to these attributes are local, however. M EditorWindow.py M NEWS.txt M PyShell.py M idlever.py M rpc.py M run.py
* 1. If user passes a non-existant filename on the commandline, just openKurt B. Kaiser2004-08-221-8/+2
| | | | | | | | | | | | | | | | | a new file, don't raise a dialog. IDLEfork 954928. 2. Refactor EditorWindow.wakeup() to WindowList.ListedToplevel.wakeup() and clarify that the Toplevel of an EditorWindow is a WindowList.ListedToplevel. 3. Make a number of improvements to keyboard focus binding. Improve window raising, especially in the debugger. IDLEfork Bug 763524 (GvR list). 4. Bump idlever to 1.1a3 M Debugger.py M EditorWindow.py M FileList.py M NEWS.txt M PyShell.py M WindowList.py M idlever.py
* EditorWindow.py was not finding the .chm help file on Windows. TypoKurt B. Kaiser2004-07-211-1/+2
| | | | at Rev 1.54. Python Bug 990954
* Checking sys.platform for substring 'win' was breaking IDLE docs on MacKurt B. Kaiser2004-07-151-14/+9
| | | | | | | | | (darwin). Also, Mac Safari browser requires full file:// URIs. SF 900580 M EditorWindow.py M NEWS.txt M configHelpSourceEdit.py M idlever.py
* Noam Raphel: Further developemt of CodeContext feature.Kurt B. Kaiser2004-06-061-4/+4
| | | | | | | | | | | | The visibility state of the code context pane is now persistent between sessions and the pane does not appear in the shell window. M CodeContext.py M EditorWindow.py M NEWS.txt M PyShell.py M config-extensions.def M configHandler.py
* 1. Polish variables in EditorWindow extension loading and Tkinter variable code.Kurt B. Kaiser2004-04-241-25/+30
| | | | | | | | | | | 2. Add exception handling to EditorWindow Tkinter variable setvar() and getvar() fcns. 3. EditorWindow: remove some unneeded comments. 4. Add a separator to the Options menu 5. extend.txt: describe how to create a menu entry which has no keybinding. M Bindings.py M EditorWindow.py M extend.txt
* M EditorWindow.pyKurt B. Kaiser2004-04-111-65/+49
| | | | | | | | | M IOBinding.py M NEWS.txt M configDialog.py - If nulls somehow got into the strings in recent-files.lst EditorWindow.update_recent_files_list() was failing. Python Bug 931336.
* Add a highlight theme for builtin keywords. Python Patch 805830 Nigel RoweKurt B. Kaiser2004-03-081-0/+2
| | | | | | | | | | | | M ClassBrowser.py M ColorDelegator.py M EditorWindow.py M NEWS.txt M PyShell.py M TreeWidget.py M config-highlight.def M configDialog.py M configHandler.py
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-5/+5
| | | | From SF patch #852334.
* Let IDLE use the HTMLHelp docs on Windows, if found.Thomas Heller2003-09-231-2/+6
| | | | Already 'backported' to release23-maint.
* SF patch #768187: replace apply(f, args, kwds) with f(*args, **kwds)Raymond Hettinger2003-07-091-1/+1
|
* 1. Remove the Readme entry on the Help Menu, now in About dialog.Kurt B. Kaiser2003-06-121-6/+1
| | | | | | 2. Change title on About dialog. Modified Files: Bindings.py EditorWindow.py
* 1. Find in Files Dialog shows text selection if there is oneKurt B. Kaiser2003-06-071-3/+0
| | | | | | | 2. Remove obsolete comment associated with Window menu updating M EditorWindow.py M GrepDialog.py
* 1. Update WindowList registry when filename changes so thatKurt B. Kaiser2003-06-061-0/+1
| | | | | | | | | | Window menu updates. 2. Display Python Shell window in Window menu 3. Remove some dead code in FileList.py M EditorWindow.py M FileList.py M WindowList.py
* Change to <<open-module>>: always pop up the dialog, using the currentGuido van Rossum2003-06-051-8/+7
| | | | selection as the default value. This is easier to use habitually.
* SF 748973 Guido van Rossum patchKurt B. Kaiser2003-06-051-2/+7
| | | | | | | | | New Window should save in the directory of the Editor Window from which it was selected. M EditorWindow.py M FileList.py M IOBinding.py
* Patch 611069 (Christos Georgiou) IDLE TODO:left/right when selected textKurt B. Kaiser2003-01-171-0/+22
| | | | | | M EditorWindow.py M NEWS.txt M TODO.txt
* M Bindings.pyKurt B. Kaiser2003-01-141-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | M EditorWindow.py M NEWS.txt M config-main.def M configDialog.py M configHandler.py M configHelpSourceEdit.py M configSectionNameDialog.py - Change default: IDLE now starts with Python Shell. - Removed the File Path from the Additional Help Sources scrolled list. - Add capability to access Additional Help Sources on the web if the Help File Path begins with //http or www. (Otherwise local path is validated, as before.) - Additional Help Sources were not being posted on the Help menu in the order entered. Implement sorting the list by [HelpFiles] 'option' number. - Add Browse button to New Help Source dialog. Arrange to start in Python/Doc if platform is Windows, otherwise start in current directory. - Put the Additional Help Sources directly on the Help menu instead of in an Extra Help cascade menu. Rearrange the Help menu so the Additional Help Sources come last. Update help.txt appropriately. - Fix Tk root pop-ups in configSectionNameDialog.py and configDialog.py
* SF bug #652933 (for IdleFork): Open Module "math" Fails (Hettinger)Kurt B. Kaiser2003-01-101-1/+4
| | | | | | | When a module doesn't have a __path__ attribute, trigger a dialog box rather than dumping a traceback to the console. Synch to Python IDLE.
* 1. Make finding Python help docs more robust, including the installedKurt B. Kaiser2003-01-101-19/+29
| | | | | | configuation. 2. Make sure that os.startfile() is used to open both Python help docs and Extra Help docs on the Windows platforms.
* M AutoExpand.pyKurt B. Kaiser2003-01-041-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | M Bindings.py M EditorWindow.py M PyShell.py M config-keys.def M configHandler.py M help.txt 1. Annotate the shell window with last restart boundary upon restart. 2. Provide a shell menu entry and hot key (F6) to jump to the last restart boundary. 3. Add a new shell menu feature to restart the shell. 4. Update the help menu to add these features. 5. Update the help menu to put text in same order as the menus. 6. Correct a capitalization inconsistency on the Edit menu: Expand Word 7. Rename the "Debug" menu to be "Shell": it's doing more now. 8. Rearrange the "Shell" menu to make the StackViewer entries adjacent. 9. Add a get_geometry method to EditorWindow, which may be of use in making window positions persisent. 10. Make <ctrl-v> the "Classic Windows" paste key. 11. Restore decorum on the Help menu by removing "Advice". As Guido said, things will never be the same. Thanks, David!
* Whitespace NormalizationKurt B. Kaiser2002-12-311-20/+20
|
* Remove some old debugging print statements.Kurt B. Kaiser2002-12-291-10/+0
|
* M EditorWindow.pyKurt B. Kaiser2002-12-291-7/+8
| | | | | | | | | | | | | | | M PyShell.py 1. PyShell Rev 1.39, EditorWindow Rev 1.37 fix was not handling a multiline prompt. 2. The same fix introduced a bug where hitting <enter> at a previous prompt-only line would copy the prompt to the iomark. 3. Move the setting of sys.ps1 earlier, into PyShell.main(), to allow this code to work before a shell is started up. 4. If cursor is on the input line in the prompt, and you hit <enter>, process the line instead of complaining. 5. If line has no stdin range (this includes the last line before shell restart) strip any prompt before recalling.
* Remove debugging statement checked in by accident, ah, carelessness.Kurt B. Kaiser2002-12-201-1/+0
|
* "'foo' in str" not implemented in Python 2.2, only single character lookupKurt B. Kaiser2002-12-201-1/+2
|
* In Shell:Kurt B. Kaiser2002-12-161-0/+4
| | | | | 1. If a tab is entered at the prompt, allow it to be backspaced away. 2. Eliminate the beep when hitting <enter> at the prompt.
* M EditorWindow.pyKurt B. Kaiser2002-12-161-2/+0
| | | | | | | | | | M PyShell.py Idlefork SF Bug 440383 - IDLE goes into beep loop Fix loop in EditorWindow.newline_and_indent_event() and in addition fix submission of >>> prompt to PyParse.Parser Eliminate extra attribute EditorWindow.auto_indent
* Implement Restoring Breakpoints in Subprocess DebuggerKurt B. Kaiser2002-10-231-7/+0
| | | | | | | | | | | | | | | | | | | | M Debugger.py M EditorWindow.py M PyShell.py 0. Polish PyShell.linecache_checkcache() 1. Move break clearing code to PyShell.PyShellEditorWindow from EditorWindow. 2. Add PyShellEditorWindow.breakpoints attribute to __init__, a list of line numbers which are breakpoints for that edit window. 3. Remove the code in Debugger which removes all module breakpoints when debugger is closed. Want to be able to reload into debugger when restarted. 4. Moved the code which sets EditorWindow.text breakpoints from Debugger to PyShell.PyShellEditorWindow and refactored. 5. Implement reloading subprocess debugger with breakpoints from all open PyShellEditorWindows when debugger is opened or subprocess restarted. 6. Eliminate the break_set attribute, use the breakpoint list instead.
* Apply Josh Robb's Patch:Kurt B. Kaiser2002-10-061-3/+11
| | | | | | | | | [ 617097 ] EditorWindow.py: underline recent files Added a couple of mods to reduce the indentation level. Note that the recent files menu doesn't update until Idle is restarted, pre-existing bug, at least on Linux.
* Apply Josh Robb's PatchKurt B. Kaiser2002-10-041-1/+1
| | | | | [ 617125 ] EditorWindow.py: Fix the wrap (used 'none' instead of NONE)
* Fix Bug 612886 copy/paste menu items failKurt B. Kaiser2002-09-261-1/+23
| | | | | | | | | | (cut vs. Cut etc.) Fix Bug 613006 Ctrl-x Unix Binding Clears Selection (do-nothing does something :) Leave some debugging prints behind, commented out M EditorWindow.py M config-keys.def M configHandler.py
* Merge Py Idle changes:Kurt B. Kaiser2002-09-161-13/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | Rev 1.39 GvR Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smart indent error Use // where int division is intended. (This breaks IDLE for use with previous Python versions -- I don't care.) Rev 1.40 tim_one Convert a pile of obvious "yes/no" functions to return bool. Rev 1.41 foffani/loewis (already merged) - MS html help Rev 1.42 (skip, done differently in Idlefork) Rev 1.43 tzot/rhettinger Extended IDLE's open module menu item to handle hierarchical module names. Will look at doing something similar in import.c so that the effort won't have to be repeated elsewhere. Closes SF patch 600152. Rev 1.44 doerwalter (string methods)
* Merge Py Idle's changes to AutoIndent.py into EditorWindow.py sinceKurt B. Kaiser2002-09-151-9/+7
| | | | | | | | | | | | | | | | | | | | | | EditorWindow has incorporated AutoIndent Rev 1.17 classifyws(): Fix a "/" to work under -Qnew (as well as without it). Bugfix candidate! Rev 1.18 (Already merged) Rev 1.19 smart_backspace_event(): remove now-pointless int() call. Bugfix candidate: the current state of AutoIdent.py should be in 2.2.1. Rev 1.20 Apply diff2.txt from SF patch http://www.python.org/sf/572113 (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.
* MERGE DS_RPC_BRANCH into MAINKurt B. Kaiser2002-09-141-57/+0
| | | | | | | | | EditorWindow.py don't track Py Idle patch 543222 - disable script bindings in shell since it was done differently in MAIN Remove "binding comments" 05 Aug 1.23.2.3 to 1.23.2.4 Remove last dependencies to old config backend 06Aug to 1.23.2.5
* MERGE DS_RPC_BRANCH into MAINKurt B. Kaiser2002-09-141-0/+480
| | | | | | EditorWindow.py AutoIndent merged 21Jul Comment out debug messages 21Jul
* 1. Prevent Undo before IOmark in PyShell.PyShellKurt B. Kaiser2002-07-111-10/+12
| | | | | 2. Consolidate Undo code in EditorWindow.EditorWindow 3. Remove Formatting and Run menus from PyShell
* Modifying EditorWindow causes breakpoints in that module to be removedKurt B. Kaiser2002-07-061-2/+6
| | | | | | from both sides of the split debugger. M Debugger.py M EditorWindow.py
* Clear associated breakpoints when closing an edit window.Kurt B. Kaiser2002-06-241-15/+19
| | | | | | | | | | M Debugger.py : Added clear_file_breaks() M EditorWindow.py : Clear breaks when closed, commments->docstrings, comment out some debugging print statements M PyShell.py : comments->docstrings ; clarify extending EditorWindow methods. M RemoteDebugger.py: Add clear_all_file_breaks() functionality, clarify some comments.
* Rework the code to have only the GvR RPC. Output from execution of userKurt B. Kaiser2002-06-121-6/+0
| | | | code is directed to the Shell.
* tracking python idle changes:Steven M. Gava2002-04-221-4/+12
| | | | Patch #540583: Open MS Help Docs if available.
* further work on new config system;Steven M. Gava2002-03-271-1/+70
| | | | recent files menu
* further work on new config system;Steven M. Gava2002-03-271-7/+30
| | | | user defined help items
* further work on dynamic reconfiguration;Steven M. Gava2002-03-181-0/+33
| | | | keybindings
* further work on dynamic config changes;Steven M. Gava2002-03-121-1/+15
| | | | editor font
* First work on making config changes dynamic,Steven M. Gava2002-03-021-0/+10
| | | | dynamic theme changes