[issue8641] IDLE 3 doesn't highlights b"", but u""

2011-12-06 Thread Roger Serwy
Roger Serwy added the comment: I applied the patch against the latest version in the repository and it works correctly. -- nosy: +serwy type: -> behavior versions: +Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/iss

[issue13495] IDLE: Regression - Two ColorDelegator instances loaded

2011-12-04 Thread Roger Serwy
Roger Serwy added the comment: I attached a better patch that preserves the goals of the original code while not creating two color delegators. I traced down when the regression occurred (2007-09-06): (a4bd8a4805a8) 1. Fail gracefully if the file fails to decode when loaded. This patch (2008

[issue13506] IDLE sys.path does not contain Current Working Directory

2011-12-03 Thread Roger Serwy
Roger Serwy added the comment: I have given this issue some further consideration, and realized that my "+1" recommendation was not correct. Starting the interactive python interpreter will automatically include [''] in sys.path. A fresh restart of IDLE's shell does

[issue11838] IDLE: make interactive code savable as a runnable script

2011-12-02 Thread Roger Serwy
Roger Serwy added the comment: I considered saving directly from the shell but then I ran into a use-case problem. Saving the shell window as an runnable script will also save any syntax errors that were entered. A user would then have to open an editor to correct these errors. A high-level

[issue11838] IDLE: make interactive code savable as a runnable script

2011-12-01 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue11838> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2011-11-30 Thread Roger Serwy
Roger Serwy added the comment: #2704 covers point 1 (In the shell window, if you click anywhere but on the current line and move the cursor there, the window stops handling key strokes.) #3851 covers point 1.1) "Pressing the Home key moves the cursor before the >>> prompt, wh

[issue13506] IDLE sys.path does not contain Current Working Directory

2011-11-30 Thread Roger Serwy
Roger Serwy added the comment: +1 The proposed patch works as described. I do agree with Marco that IDLE does need some more QA. -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue13

[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2011-11-29 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue13504> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3573] IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))

2011-11-29 Thread Roger Serwy
Roger Serwy added the comment: I can confirm that using "idle -e " still causes a hang on Windows using 3.2.2 and on Ubuntu using 2.7.1 and 3.2 The given patch fixes the problem on those platforms. -- nosy: +serwy ___ Python trac

[issue13495] IDLE: Regression - Two ColorDelegator instances loaded

2011-11-28 Thread Roger Serwy
New submission from Roger Serwy : Two instances of ColorDelegator are in the percolator chain. This is a regression from 2.x. The problem can be found in __init__ of EditorWindow in EditorWindow.py. Calling "io.loadfile" eventually calls "filename_change_hook"

[issue8793] IDLE crashes on opening invalid file

2011-11-15 Thread Roger Serwy
Roger Serwy added the comment: With IDLE 3.2 on Ubuntu 11.04, this is not a problem. An error box pops up: SyntaxError (unicode error) 'unicodeescape' codec can't decode bytes in position 0-3: truncated \xXX escape With IDLE 2.7.1 on Ubuntu 11.04, the console gives the err

[issue12988] IDLE on Win7 crashes when saving to Documents Library

2011-11-15 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue12988> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13319] IDLE: Menu accelerator conflict between Format and Options

2011-11-04 Thread Roger Serwy
Roger Serwy added the comment: Alt-3 is comment-out region on Linux as well. The problem is that "o" is an accelerator for "Comment Out Region" under the Format menu. Pressing "Alt-o and o" under Linux is equivalent to "Alt-o and Alt-o". This togglin

[issue13319] IDLE: Menu accelerator conflict between Format and Options

2011-11-04 Thread Roger Serwy
Roger Serwy added the comment: Which platform are you running? On Linux (Ubuntu 11.10, Python 3.2, Tk 8.5), Alt-o does not toggle between Format and Options. The first Alt-o selects "Format" and the second Alt-o selects "Comment Out Region". Changing Format's ac

[issue13319] IDLE: Menu accelerator conflict between Format and Options

2011-11-01 Thread Roger Serwy
New submission from Roger Serwy : This is a minor interface issue. The accelerator for opening the _Options menu in an editor conflicts with the F_ormat menu. I suggest changing the Options accelerator to "i" since Alt-t is for toggling tabs. (Perhaps the accelerator for <> s

[issue13265] IDLE crashes when printing some unprintable characters.

2011-10-30 Thread Roger Serwy
Roger Serwy added the comment: I can reproduce the problem with Ubuntu 11.04 with Python 3.2. The WidgetRedirector calls tk_call with a tuple containing unencoded Unicode strings. Attached is a patch to encode all arguments if the argument has the "encode" attribute. This seems

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2011-10-30 Thread Roger Serwy
Roger Serwy added the comment: Attached is a patch against 3.2.2 which does proper after_cancel calls on the after calls to checkhide_event. -- Added file: http://bugs.python.org/file23558/patch5219.diff ___ Python tracker <http://bugs.python.

[issue13296] IDLE: __future__ flags don't clear on shell restart

2011-10-30 Thread Roger Serwy
New submission from Roger Serwy : The interactive interpreter in IDLE does not reset its compiler __future__ flags when you restart the shell. To verify this, type into the shell: >>> from __future__ import barry_as_FLUFL >>> 1 != 2 You'll get a syntax e

[issue1053687] PyOS_InputHook not called in IDLE subprocess

2011-10-18 Thread Roger Serwy
Roger Serwy added the comment: This is related to http://bugs.python.org/issue989712 -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue1053

[issue13179] IDLE uses common tkinter variables across all editor windows

2011-10-15 Thread Roger Serwy
Roger Serwy added the comment: For Code Context, the behavior is a bug since the menu item check can be changed independently of the actual status of Code Context. As far as I can tell, flist.vars mostly contains variables created by EditorWindow.py's "get_var_obj". A quick

[issue13052] IDLE: replace ending with '\' causes crash

2011-10-14 Thread Roger Serwy
Roger Serwy added the comment: I don't have the beep problem you describe under Linux using Python 3.2 (r32:88445, Mar 25 2011, 19:56:22). That may be a platform-specific bug. Here's a patch to use re.escape instead. A minor side effect of using re.escape is that it is not possi

[issue9150] IDLE should not save trailing whitespace after strip trailing whitespace has been used

2011-10-14 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue9150> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue13052] IDLE: replace ending with '\' causes crash

2011-10-14 Thread Roger Serwy
Roger Serwy added the comment: I see that Ezio added me to the nosy list. Here's a patch that identifies bogus escape characters at the end of the replvar string and appends an extra \ to fix it. -- keywords: +patch Added file: http://bugs.python.org/file23409/patch13052

[issue13039] IDLE editor: shell-like behaviour on line starting with ">>>"

2011-10-14 Thread Roger Serwy
Roger Serwy added the comment: Here's a patch. The smart_backspace_event code considers sys.ps1 even though it's not a PyShell instance. The "context_use_ps1" flag is already used to modify other behavior of the editor window when it is a PyShell instance, so it is ap

[issue13179] IDLE uses common tkinter variables across all editor windows

2011-10-14 Thread Roger Serwy
New submission from Roger Serwy : IDLE's EditorWindow.py relies on using FileList.py's "vars" dictionary to store Tkinter variables instead of using its own. As a consequence, toggling a checked menu item in one editor window toggles the menu item in ALL editor windows

[issue9262] IDLE: Use tabbed shell and edit windows

2011-08-26 Thread Roger Serwy
Roger Serwy added the comment: Attached is an extension which provides tabbed windows for IDLE. It supports drag-and-drop reordering and separate windows. The implementation relies on monkey-patching a few subroutines and duck-typing for the toplevel window. The extension emulates each tab

[issue9262] IDLE: Use tabbed shell and edit windows

2011-01-09 Thread Roger Serwy
Changes by Roger Serwy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue9262> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6014] No shell prompt when a graphics window that was started from IDLE is closed

2010-10-15 Thread Roger Serwy
Roger Serwy added the comment: This issue can be closed. The natural language toolkit uses Tk for its GUI, the same as IDLE. Under Ubuntu 8.10, IDLE is launched from the menu without a subprocess. Running nltk as described without a subprocess causes this problem. Try launching IDLE without

[issue5150] IDLE to support reindent.py

2010-10-15 Thread Roger Serwy
Roger Serwy added the comment: I grabbed the core of reindent.py and put it into an extension, unmodified. The original reindent.py will emit Indentation Errors if they exist. ScriptBinding already has nice code to handle these problems by highlighting the error, placing the cursor at the

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2010-03-25 Thread Roger Serwy
Changes by Roger Serwy : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue3851> ___ ___ Python-bugs-list mailing list Unsubscri

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2010-03-25 Thread Roger Serwy
Roger Serwy added the comment: Rather than change the core code of IDLE, I've attached an extension to achieve terminal-like behavior. It provides a toggle to enable/disable. However, this extension as-is only works on the 2.x series, although it can be modified slightly to work o

[issue1612262] Class Browser doesn't show internal classes

2009-06-20 Thread Roger Serwy
Roger Serwy added the comment: The class browser relies on the pyclbr module to scan the code. This module doesn't support classes within classes. Both pyclbr and IDLE's class browser need to be modified. -- nosy: +serwy ___ Python trac

[issue6143] IDLE - an extension to clear the shell window

2009-06-14 Thread Roger Serwy
Roger Serwy added the comment: I just tried Squeezer. It's pretty neat and it solves a different problem. Clearing the contents of the shell window should be a simple operation. The undo operation doesn't restore iomark properly, nor does it restore tags. I've uploaded a newer

[issue5219] IDLE/Tkinter: edit win stops updating when tooltip is active

2009-06-11 Thread Roger Serwy
Roger Serwy added the comment: I've uploaded a patch to solve the problem. In CallTipWindow.py, the showtip function binds key releases and button releases to the checkhide_event function. The checkhide_event function creates a .after callback to itself whenever it's called. Each k

[issue6168] Missing Shell menu in Linux IDLE

2009-06-01 Thread Roger Serwy
Roger Serwy added the comment: You'll need to modify the IDLE menu item to remove the "-n" using Ubuntu's menu modification tool, usually found under System->Preferences. Presently, using a subprocess only allows for one instance of IDLE running on a machine, whereas run

[issue6168] Missing Shell menu in Linux IDLE

2009-06-01 Thread Roger Serwy
Roger Serwy added the comment: Running IDLE from the Applications menu under Ubuntu will not have the Shell menu. If you bring up a terminal and enter "idle", you will have the Shell menu. IDLE, when selected from the Application menu, is being run with the "-n" comman

[issue6143] IDLE - an extension to clear the shell window

2009-05-29 Thread Roger Serwy
New submission from Roger Serwy : I noticed that the feature to clear the shell window has been a discussion topic in the IDLE-dev archives for a few years. Here's an extension that can clear the contents of the shell window. It provides "Clear Shell Window" under "Options

[issue5150] IDLE to support reindent.py

2009-05-28 Thread Roger Serwy
Roger Serwy added the comment: Here's an extension that adds rstrip() to the Format menu. -- nosy: +serwy Added file: http://bugs.python.org/file14108/RstripExtension.py ___ Python tracker <http://bugs.python.org/i

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2008-09-12 Thread Roger Serwy
New submission from Roger Serwy <[EMAIL PROTECTED]>: Pressing "Home" on Windows XP in the PyShell window places the cursor before ">>>" instead of after it. On Linux, this behaves correctly. The problem is in PyShell.py in the home_callback(). At line 1064: i

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2008-09-12 Thread Roger Serwy
Changes by Roger Serwy <[EMAIL PROTECTED]>: -- nosy: serwy severity: normal status: open title: IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered. ___ Pytho

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-06-16 Thread Roger Serwy
Roger Serwy <[EMAIL PROTECTED]> added the comment: I rewrote the patch to better handle multi-line input. In rewriting the patch I realized that there can be many different ways to handle up/down key presses while the cursor is in the input region. Here is the behavior of this patch: For

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-05-03 Thread Roger Serwy
Roger Serwy <[EMAIL PROTECTED]> added the comment: Hi Terry, The patch allows you to select previous output if your cursor leaves the command line area. Press the left arrow button at a new command line does this. Thank you for your feedback! - RDS Terry J. Reedy wrote: > Terry

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-04-27 Thread Roger Serwy
New submission from Roger Serwy <[EMAIL PROTECTED]>: See attached diff file. Patching PyShell.py Version 1.2.1 PyShell ignores letter/number key presses when the cursor is not on the command line. Instead it should redirect any letter/number key presses to the command line. (C

<    1   2   3   4   5   6