[Idle-dev] CVS: idle ScriptBinding.py,1.16,1.17 config-extensions.def,1.9,1.10 help.txt,1.7,1.8
Kurt B. Kaiser
kbk@users.sourceforge.net
Sat, 25 Jan 2003 20:17:18 -0800
Update of /cvsroot/idlefork/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv26610
Modified Files:
ScriptBinding.py config-extensions.def help.txt
Log Message:
M ScriptBinding.py
M config-extensions.def
M help.txt
1. Run Script --> Run Module
2. Update IDLE Help file and do more work on format.
Index: ScriptBinding.py
===================================================================
RCS file: /cvsroot/idlefork/idle/ScriptBinding.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** ScriptBinding.py 10 Jan 2003 03:06:30 -0000 1.16
--- ScriptBinding.py 26 Jan 2003 04:17:16 -0000 1.17
***************
*** 12,16 ****
XXX GvR Redesign this interface (yet again) as follows:
! - Present a dialog box for ``Run script''
- Allow specify command line arguments in the dialog box
--- 12,16 ----
XXX GvR Redesign this interface (yet again) as follows:
! - Present a dialog box for ``Run Module''
- Allow specify command line arguments in the dialog box
***************
*** 46,50 ****
('run', [None,
('Check Module', '<<check-module>>'),
! ('Run Script', '<<run-script>>'), ]), ]
def __init__(self, editwin):
--- 46,50 ----
('run', [None,
('Check Module', '<<check-module>>'),
! ('Run Module', '<<run-module>>'), ]), ]
def __init__(self, editwin):
***************
*** 114,119 ****
text.see(pos)
! def run_script_event(self, event):
! "Check syntax, if ok run the script in the shell top level"
filename = self.getfilename()
if not filename:
--- 114,119 ----
text.see(pos)
! def run_module_event(self, event):
! "Check syntax, if ok run the module in the shell top level"
filename = self.getfilename()
if not filename:
Index: config-extensions.def
===================================================================
RCS file: /cvsroot/idlefork/idle/config-extensions.def,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** config-extensions.def 23 Dec 2002 03:35:27 -0000 1.9
--- config-extensions.def 26 Jan 2003 04:17:16 -0000 1.10
***************
*** 32,36 ****
enable=1
[ScriptBinding_cfgBindings]
! run-script=<Key-F5>
check-module=<Alt-Key-x>
--- 32,36 ----
enable=1
[ScriptBinding_cfgBindings]
! run-module=<Key-F5>
check-module=<Alt-Key-x>
Index: help.txt
===================================================================
RCS file: /cvsroot/idlefork/idle/help.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** help.txt 14 Jan 2003 22:06:11 -0000 1.7
--- help.txt 26 Jan 2003 04:17:16 -0000 1.8
***************
*** 6,60 ****
File Menu:
! New Window -- create a new editing window
! Open... -- open an existing file
! Recent Files... -- open a list of recent files
! Open Module... -- open an existing module (searches sys.path)
! Class Browser -- show classes and methods in current file
! Path Browser -- show sys.path directories, modules, classes
! and methods
! ---
! Save -- save current window to the associated file (unsaved
! windows have a * before and after the window title)
!
! Save As... -- save current window to new file, which becomes
! the associated file
! Save Copy As... -- save current window to different file
! without changing the associated file
---
! Print Window -- print the current window
---
! Close -- close current window (asks to save if unsaved)
! Exit -- close all windows and quit IDLE (asks to save if unsaved)
Edit Menu:
! Undo -- Undo last change to current window (max 1000 changes)
! Redo -- Redo last undone change to current window
! ---
! Cut -- Copy selection into system-wide clipboard; then delete selection
! Copy -- Copy selection into system-wide clipboard
! Paste -- Insert system-wide clipboard into window
! Select All -- Select the entire contents of the edit buffer
! ---
! Find... -- Open a search dialog box with many options
! Find Again -- Repeat last search
! Find Selection -- Search for the string in the selection
Find in Files... -- Open a search dialog box for searching files
! Replace... -- Open a search-and-replace dialog box
! Go to Line -- Ask for a line number and show that line
! Expand Word -- Expand the word you have typed to match another
! word in the same buffer; repeat to get a different
! expansion
Format Menu (only in Edit window):
! Indent Region -- Shift selected lines right 4 spaces
! Dedent Region -- Shift selected lines left 4 spaces
! Comment Out Region -- Insert ## in front of selected lines
! Uncomment Region -- Remove leading # or ## from selected lines
! Tabify Region -- Turns *leading* stretches of spaces into tabs
! Untabify Region -- Turn *all* tabs into the right number of spaces
New Indent Width... -- Open dialog to change indent width
! Format Paragraph -- Reformat the current blank-line-separated paragraph
Run Menu (only in Edit window):
--- 6,63 ----
File Menu:
! New Window -- Create a new editing window
! Open... -- Open an existing file
! Recent Files... -- Open a list of recent files
! Open Module... -- Open an existing module (searches sys.path)
! Class Browser -- Show classes and methods in current file
! Path Browser -- Show sys.path directories, modules, classes
! and methods
! ---
! Save -- Save current window to the associated file (unsaved
! windows have a * before and after the window title)
!
! Save As... -- Save current window to new file, which becomes
! the associated file
! Save Copy As... -- Save current window to different file
! without changing the associated file
---
! Print Window -- Print the current window
---
! Close -- Close current window (asks to save if unsaved)
! Exit -- Close all windows, quit (asks to save if unsaved)
Edit Menu:
! Undo -- Undo last change to current window
! (A maximum of 1000 changes may be undone)
! Redo -- Redo last undone change to current window
! ---
! Cut -- Copy a selection into system-wide clipboard,
! then delete the selection
! Copy -- Copy selection into system-wide clipboard
! Paste -- Insert system-wide clipboard into window
! Select All -- Select the entire contents of the edit buffer
! ---
! Find... -- Open a search dialog box with many options
! Find Again -- Repeat last search
! Find Selection -- Search for the string in the selection
Find in Files... -- Open a search dialog box for searching files
! Replace... -- Open a search-and-replace dialog box
! Go to Line -- Ask for a line number and show that line
! Expand Word -- Expand the word you have typed to match another
! word in the same buffer; repeat to get a
! different expansion
Format Menu (only in Edit window):
! Indent Region -- Shift selected lines right 4 spaces
! Dedent Region -- Shift selected lines left 4 spaces
! Comment Out Region -- Insert ## in front of selected lines
! Uncomment Region -- Remove leading # or ## from selected lines
! Tabify Region -- Turns *leading* stretches of spaces into tabs
! Untabify Region -- Turn *all* tabs into the right number of spaces
New Indent Width... -- Open dialog to change indent width
! Format Paragraph -- Reformat the current blank-line-separated
! paragraph
Run Menu (only in Edit window):
***************
*** 63,77 ****
---
Check Module -- Run a syntax check on the module
! Run Script -- Execute the current file in the __main__ namespace
Shell Menu (only in Shell window):
View Last Restart -- Scroll the shell window to the last restart
! Restart Shell -- Restart the interpreter with a fresh environment
! ---
! Go to File/Line -- look around the insert point for a filename
! and linenumber, open the file, and show the line
Debugger (toggle) -- Run commands in the shell under the debugger
! Stack Viewer -- show the stack traceback of the last exception
Auto-open Stack Viewer (toggle) -- Open stack viewer on traceback
--- 66,82 ----
---
Check Module -- Run a syntax check on the module
! Run Module -- Execute the current file in the __main__ namespace
Shell Menu (only in Shell window):
View Last Restart -- Scroll the shell window to the last restart
! Restart Shell -- Restart the interpreter with a fresh environment
!
! Debug Menu (only in Shell window):
!
! Go to File/Line -- look around the insert point for a filename
! and linenumber, open the file, and show the line
Debugger (toggle) -- Run commands in the shell under the debugger
! Stack Viewer -- Show the stack traceback of the last exception
Auto-open Stack Viewer (toggle) -- Open stack viewer on traceback
***************
*** 79,87 ****
Configure IDLE -- Open a configuration dialog. Fonts, indentation,
! keybindings, and color themes may be altered.
Startup Preferences may be set, and Additional Help
! Souces can be specified.
---
! Revert to Default Settings -- Restore original settings
Windows Menu:
--- 84,94 ----
Configure IDLE -- Open a configuration dialog. Fonts, indentation,
! keybindings, and color themes may be altered.
Startup Preferences may be set, and Additional Help
! Souces can be specified.
---
! Revert to Default Settings -- Restore original settings. Not
! currently implemented - simply delete
! your .idlerc file.
Windows Menu:
***************
*** 103,107 ****
installed. Otherwise, access www.python.org.
---
! (Additional Help Sources)
--- 110,114 ----
installed. Otherwise, access www.python.org.
---
! (Additional Help Sources may be added here)
***************
*** 121,125 ****
All users can access the extensive sources of help, including
tutorials, available at www.python.org/doc. Selected URLs can be added
! or removed from the Help menu at any time.
Basic editing and navigation:
--- 128,132 ----
All users can access the extensive sources of help, including
tutorials, available at www.python.org/doc. Selected URLs can be added
! or removed from the Help menu at any time using Configure IDLE.
Basic editing and navigation:
***************
*** 139,143 ****
dedented. In leading indentation, Backspace deletes up to 4
spaces if they are there. Tab inserts spaces (in the
! Python Shell window one tab), number depends on Indent Width
See also the indent/dedent region commands in the edit menu.
--- 146,153 ----
dedented. In leading indentation, Backspace deletes up to 4
spaces if they are there. Tab inserts spaces (in the
! Python Shell window one tab), number depends on Indent Width.
! (N.B. Currently tabs are restricted to four spaces due to Tcl/Tk
! issues.)
!
See also the indent/dedent region commands in the edit menu.
***************
*** 154,158 ****
Alt-/ (Expand word) is also useful here
! Syntax colors:
The coloring is applied in a background "thread", so you may
--- 164,168 ----
Alt-/ (Expand word) is also useful here
! Syntax colors:
The coloring is applied in a background "thread", so you may