homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: TAB SETTINGS DONT WORK (win)
Type: Stage:
Components: IDLE Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: kbk Nosy List: kbk, reson5
Priority: normal Keywords:

Created on 2005年10月27日 19:41 by reson5, last changed 2022年04月11日 14:56 by admin. This issue is now closed.

Messages (4)
msg26749 - (view) Author: reson5 (reson5) Date: 2005年10月27日 19:41
Hi!
I have downloaded newer version of Python and 
unfortunately the TAB settings in IDLE have no effect on 
the spaces inserted - ALWAYS 4 spaces.
Previous release had the same problem.
Win 2k, Python 2.4.2.
Regards,
 Reson
msg26750 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2006年08月08日 00:44
Logged In: YES 
user_id=149084
Yes, as designed. Python strongly encourages the
use of four space indent. If you really need to 
change this for some reason, modify the config-main.def
section [Indent] num-spaces value.
The colums per tab dialog in tabify/untabify is used
for converting tabbed code to spaced code. Weirdly
indented code (i.e. 6 spaces) can be converted to 
tabs and then back to four space indent using those
two functions.
What is your use case?
msg26751 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2006年08月08日 03:03
Logged In: YES 
user_id=149084
Yes, as designed. Python strongly encourages the
use of four space indent. If you really need to 
change this for some reason, modify the config-main.def
section [Indent] num-spaces value.
The colums per tab dialog in tabify/untabify is used
for converting tabbed code to spaced code. Weirdly
indented code (i.e. 6 spaces) can be converted to 
tabs and then back to four space indent using those
two functions.
What is your use case?
msg26752 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2006年08月08日 17:59
Logged In: YES 
user_id=149084
Ah, ok, I see what you are talking about.
This was fixed in 2.5. Try 2.5b3!
See Rev 38319 and 38400 at
http://svn.python.org/view/python/trunk/Lib/idlelib/
EditorWindow.py?rev=50833&view=log
I'm making another change in this area: if the user
selects Toggle Tabs and Cancel, his indentation setting
is changed to 8. It should not change unless he 
actually selects Tab indentation. Change should be in
2.5c1, due out around 18Sep.
These changes should not be backported to 2.4 since they
are essentially feature changes, not just bugs.
History
Date User Action Args
2022年04月11日 14:56:13adminsetgithub: 42532
2005年10月27日 19:41:32reson5create

AltStyle によって変換されたページ (->オリジナル) /