summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/ScriptBinding.py
Commit message (Collapse)AuthorAgeFilesLines
* Tkinter rename reversal: remove tkinter package, adapt imports and docs.Georg Brandl2008-05-201-1/+1
|
* Tkinter rename, step 2: fix imports and add stub modules.Georg Brandl2008-05-161-1/+1
|
* ScriptBinding event handlers weren't returning 'break'. Patch 2050, Tal Einat.Kurt B. Kaiser2008-02-151-6/+7
|
* Some syntax errors were being caught by tokenize during the tabnannyKurt B. Kaiser2006-10-011-6/+4
| | | | | check, resulting in obscure error messages. Do the syntax check first. Bug 1562716, 1562719
* Changing tokenize (39046) to detect dedent broke tabnanny check (since 1.2a1)Kurt B. Kaiser2006-08-101-0/+3
|
* - EditorWindow.test() was failing. Bug 1417598Kurt B. Kaiser2006-07-241-1/+1
| | | | | | M EditorWindow.py M ScriptBinding.py M NEWS.txt
* Revert previous code elimination, 'filename' is needed.Kurt B. Kaiser2005-08-231-2/+7
|
* 1. Mac line endings were incorrect when pasting code from some browsersKurt B. Kaiser2005-08-231-7/+3
| | | | | | | when using X11 and the Fink distribution. Python Bug 1263656. 2. Eliminate duplicated code in ScriptBinding.run_module_event() Modified Files: NEWS.txt ScriptBinding.py
* 1. Clarify "tab/space" Error Dialog and "Tab Width" Dialog associated withKurt B. Kaiser2005-06-121-8/+5
| | | | | | | | | | the Untabify command. 2. Corrected "tab/space" Error Dialog to show correct menu for Untabify. Patch 1196980 Jeff Shute M EditorWindow.py M NEWS.txt M ScriptBinding.py
* 1. Polish tabbing code.Kurt B. Kaiser2005-01-191-0/+2
| | | | | | | | | | | | | | | | | 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
* Redirect the warning stream to the shell during the ScriptBinding check of ↵Kurt B. Kaiser2004-07-041-17/+23
| | | | | | | | | | | | user code and format the warning similarly to an exception for both that check and for warnings raised in the subprocess. M NEWS.txt M Pyshell.py M ScriptBinding.py M run.py
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-3/+3
| | | | From SF patch #852334.
* Added a Tk error dialog to run.py inform the user if the subprocess can'tKurt B. Kaiser2004-01-211-0/+2
| | | | | | | | | | | | | | connect to the user GUI process. Added a timeout to the GUI's listening socket. Added Tk error dialogs to PyShell.py to announce a failure to bind the port or connect to the subprocess. Clean up error handling during connection initiation phase. This is an update of Python Patch 778323. M NEWS.txt M PyShell.py M ScriptBinding.py M run.py Backport candidate.
* SF 747667 Error Doesn't DecolorizeKurt B. Kaiser2003-06-051-1/+6
| | | | | | Also improved error notification if Tabnanny detects a TokenError. M ScriptBinding
* SF 745525Kurt B. Kaiser2003-05-311-3/+14
| | | | | | | Excecution environment and residual shell has cwd set to the directory of the module being run. M ScriptBinding.py
* Whitespace NormalizationKurt B. Kaiser2003-05-261-1/+1
| | | | Modified Files: PyShell.py ScriptBinding.py buildapp.py
* Bruce Sherwood RFE/PatchKurt B. Kaiser2003-05-261-15/+27
| | | | | | | | | | | | | | SF 661318 Adds autosave capability to IDLE and IDLE configuration dialog. User can Run/F5 without explicit save dialog. The default is to require the user to confirm the save. M ScriptBinding.py M config-main.def M configDialog.py
* 1. Stake Freddy.Kurt B. Kaiser2003-05-241-11/+0
| | | | | | | | | | | | | e.g. further improve subprocess interrupt, exceptions, and termination. 2. Remove the workarounds in PyShell.py and ScriptBinding.py involving interrupting the subprocess prior to killing it, not necessary anymore. 3. Fix a bug introduced at PyShell Rev 1.66: was getting extra shell menu every time the shell window was recreated. M PyShell.py M ScriptBinding.py M rpc.py M run.py
* 1. When a module is run from an EditorWindow, if its directory is not inKurt B. Kaiser2003-05-151-2/+3
| | | | | | | | | | | | | | sys.path, prepend it. This allows the module to import other modules in the same directory. Do the same for a script run from the command line. 2. Tweak the IDLE usage message a bit more. SF Bug 706860 (closed) SF Patch 686254 (reject specific solution) SF Patch 507327 (similar) M PyShell.py M ScriptBinding.py
* 1. Restore the capability to run and debug without a subprocess.Kurt B. Kaiser2003-05-151-3/+14
| | | | | | | | | | | | | | | | | 2. Add an indicator to the shell startup notice when running w/o subprocess. 3. Improve exception reporting when running a command or script from the command line. 4. Clarify the fact that breakpoints set or cleared after a file is saved will revert to the saved state if the file is closed without re-saving. 5. If user tries to exit or restart when user code is running, interrupt the user code. This helps to eliminate occasional hanging subprocesses on Windows (except for Freddy :). M NEWS.txt M PyShell.py M ScriptBinding.py
* M NEWS.txtKurt B. Kaiser2003-02-171-3/+0
| | | | | | | | | | | | | | | | | | M PyShell.py M ScriptBinding.py M rpc.py M run.py Clean up the way IDLEfork handles termination of the subprocess, restore ability to interrupt user code in Windows (so long as it's doing terminal I/O). 1. Handle subprocess interrupts in Windows with an RPC message. 2. Run/F5 will restart the subprocess even if user code is running. 3. Restart the subprocess if the link is dropped. 4. Exit IDLE cleanly even during I/O. 4. In rpc.py, remove explicit calls to statelock, let the condition variable handle acquire() and release().
* M ScriptBinding.pyKurt B. Kaiser2003-01-261-4/+4
| | | | | | | | M config-extensions.def M help.txt 1. Run Script --> Run Module 2. Update IDLE Help file and do more work on format.
* Default the OK key in the Save Before Run dialog.Kurt B. Kaiser2003-01-101-0/+1
|
* Whitespace NormalizationKurt B. Kaiser2002-12-311-2/+2
|
* If Edit window has not been saved, offer to save if user tries to Run orKurt B. Kaiser2002-12-191-14/+21
| | | | Check the module.
* M ColorDelegator.pyKurt B. Kaiser2002-12-171-21/+39
| | | | | | | | | | | | | M PyShell.py M ScriptBinding.py 1. Update ScriptBinding.py to highlight a syntax error in the Edit window, and place the cursor on the error. Add a syntax check to the Run Script event instead of waiting until the script tries to run and raises a syntax error in the shell, forcing the user to navigate back to the Edit window to fix it. 2. Modify tag_config's appropriately in PyShell.py and ColorDelegator.py 3. Some minor clean-up in ScriptBinding.py
* Enable Check ModuleKurt B. Kaiser2002-12-031-5/+2
|
* Cleanup:Neal Norwitz2002-11-301-9/+5
| | | | | | * Remove unused imports * Convert some more 1/0 to True/False * Shorten up a long line
* Merge Py Idle changes:Kurt B. Kaiser2002-09-181-2/+1
| | | | | | | | | | | | | | | | Rev 1.11 GvR Fix for SF bug #448835. Fix this to work with the new (still undocumented) tabnanny API. I'm afraid Stephen will have to add this fix to the IDLE fork code base as well. Rev 1.12 rhettinger (skip, done differently in Idlefork) Rev 1.13 time_one (skip, NA)
* M PyShell.pyKurt B. Kaiser2002-09-051-37/+7
| | | | | | | | | | | | | | | | | | | | | | | | M RemoteDebugger.py M ScriptBinding.py Restart the execution server with a clean environment and execute the active module from scratch upon activation of Run/F5. Add functionality to PyShell.py to restart the execution server in a new subprocess. The server makes a connection to the Idle client which sends a block of code to be executed. Modify ScriptBinding.py to restart the subprocess upon Run/F5, assuming that an execution is not currently in progress. Remove Import Module functionality, not required now that the code is executed in a clean environment. If the Debugger is active, also restart the subprocess side of the split debugger. Add functionality to RemoteDebugger.py to support this. At this time breakpoints will be lost in the subprocess if Run/F5 is activated. A subsequent checkin of PyShell.py will implement reloading of the breakpoints into the subprocess debugger. I'm keeping this separate as the design may change.
* 1. Revert subprocess environment clearing, will restart subprocessKurt B. Kaiser2002-08-251-2/+0
| | | | | | | | | | instead. 2. Preserve the Idle client's listening socket for reuse with the fresh subprocess. 3. Remove some unused rpc code, comment out additional unused code. Modified Files: ScriptBinding.py rpc.py run.py
* Reset the Python execution server environment to its initial value priorKurt B. Kaiser2002-07-281-1/+3
| | | | | | | to executing Run/F5 from an EditorWindow. M ScriptBinding.py : add call to clear_the_environment() M run.py : implemented Executive.clear_the_environment()
* Rework the code to have only the GvR RPC. Output from execution of userKurt B. Kaiser2002-06-121-8/+9
| | | | code is directed to the Shell.
* GvR's rpc patchChui Tey2002-05-261-19/+36
|
* changeover to new keybinding configuration implementationSteven M. Gava2002-01-191-6/+0
|
* py-cvs merge, better error dialogSteven M. Gava2001-07-121-3/+7
|
* Initial revisionDavid Scherer2000-08-151-0/+169