[ python-Bugs-783887 ] Tab / Space Configuration Does Not Work in IDLE

SourceForge.net noreply at sourceforge.net
Mon Jan 31 04:46:43 CET 2005


Bugs item #783887, was opened at 2003-08-05 22:00
Message generated for change (Comment added) made by kbk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=783887&group_id=5470

Category: IDLE
>Group: Python 2.5
>Status: Closed
>Resolution: Fixed
Priority: 3
Submitted By: Andy Huibers (ahuibers)
Assigned to: Kurt B. Kaiser (kbk)
Summary: Tab / Space Configuration Does Not Work in IDLE

Initial Comment:
On Python 2.3/IDLE 1.0, when I go from the editor to:

Options->Configure Idle->Font/Tabs

And set it to "Tab key inserts tabs" what actually 
happens is that the tab key inserts spaces (4 spaces).


----------------------------------------------------------------------

>Comment By: Kurt B. Kaiser (kbk)
Date: 2005-01-30 22:46

Message:
Logged In: YES 
user_id=149084

Removed Tab indentation selection from the Options
dialog.  Not appropriate for IDLE.  Tab indentation default
may still be configured 'manually' by modifying 
config-main.def but that's for experts.  You can switch on
tabs for individual Edit windows using the Format menu.
(Note: the Tab indent option was never finished and
never operable)

Changing the 'screen' indent width in the Options menu
will now be effective if you aren't using tabs (it's always
8 if you are using tabs).

Thanks for the patch and the reminder.

----------------------------------------------------------------------

Comment By: Nanjundi (nanjundi)
Date: 2005-01-17 15:07

Message:
Logged In: YES 
user_id=1199110

I got the error. I am using Python 2.3.4.
Hitting TAB in the editor advances the cursor by "4" spaces
irrespective of the "indent width" in Configure idle...->
Fonts/Tab  -> choose indentation size:

I did a quick and dirty fix.
I had to modify the Line# 915 in file <py install
path>Python23/Lib/idlelib/EditorWindow.py

Requires restart of IDLE for the change to take effect.

[Before]
    indentwidth = 3
[After]
    indentwidth =
idleConf.GetOption('main','Indent','num-spaces',
                default=4,type='int')


----------------------------------------------------------------------

Comment By: Kurt B. Kaiser (kbk)
Date: 2003-09-05 18:26

Message:
Logged In: YES 
user_id=149084

I can reproduce this on XP and Linux.

Of course, everyone should use 4 spaces :)

----------------------------------------------------------------------

Comment By: Andy Huibers (ahuibers)
Date: 2003-08-06 14:09

Message:
Logged In: YES 
user_id=838612

Mmm.. I re-installed the Windows Python-2.3 installer EXE on 
a fresh PC and I have the problem, even when I hit &quot;Apply&quot; 
and &quot;OK&quot;.
It is not a big deal of course, but would be nice if it worked..

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-08-06 00:17

Message:
Logged In: YES 
user_id=80475

I cannot reproduce the problem.

This may be a silly question, but did you click Apply after 
changing the setting?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=783887&group_id=5470


More information about the Python-bugs-list mailing list