diff options
author | Steven M. Gava <elguavas@python.net> | 2002-03-12 00:52:42 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2002-03-12 00:52:42 (GMT) |
commit | 63f6714c3ab713767dc35abc2b1129a1d264d858 (patch) | |
tree | f4afca8271d33ec0a49c0ec79ddf31822e93a3f6 /Lib/idlelib | |
parent | b1585417d1f7ae8984ca72b16fd5a21746949ae5 (diff) | |
download | cpython-63f6714c3ab713767dc35abc2b1129a1d264d858.zip cpython-63f6714c3ab713767dc35abc2b1129a1d264d858.tar.gz cpython-63f6714c3ab713767dc35abc2b1129a1d264d858.tar.bz2 |
remove tabwidth (for tabs) config stuff,
because of the way the tk text widget handles
tabs they must remain a fixed size in idle
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/config-main.def | 1 | ||||
-rw-r--r-- | Lib/idlelib/configDialog.py | 22 |
2 files changed, 11 insertions, 12 deletions
diff --git a/Lib/idlelib/config-main.def b/Lib/idlelib/config-main.def index 6e21219..9cd58fb 100644 --- a/Lib/idlelib/config-main.def +++ b/Lib/idlelib/config-main.def @@ -41,7 +41,6 @@ font-bold= 0 [Indent] use-spaces= 1 num-spaces= 4 -tab-cols= 4 [Theme] default= 1 diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py index 8367fe2..53f3e1a 100644 --- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -125,13 +125,13 @@ class ConfigDialog(Toplevel): labelIndentSizeTitle=Label(frameIndentSize, text='Choose indentation size :') labelSpaceNumTitle=Label(frameIndentSize,justify=LEFT, - text='when tab key inserts spaces,\nspaces per tab') + text='when tab key inserts spaces,\nspaces per indent') self.scaleSpaceNum=Scale(frameIndentSize,variable=self.spaceNum, orient='horizontal',tickinterval=2,from_=2,to=8) - labeltabColsTitle=Label(frameIndentSize,justify=LEFT, - text='when tab key inserts tabs,\ncolumns per tab') - self.scaleTabCols=Scale(frameIndentSize,variable=self.tabCols, - orient='horizontal',tickinterval=2,from_=2,to=8) + #labeltabColsTitle=Label(frameIndentSize,justify=LEFT, + # text='when tab key inserts tabs,\ncolumns per tab') + #self.scaleTabCols=Scale(frameIndentSize,variable=self.tabCols, + # orient='horizontal',tickinterval=2,from_=2,to=8) #widget packing #body frameFont.pack(side=LEFT,padx=5,pady=10,expand=TRUE,fill=BOTH) @@ -158,8 +158,8 @@ class ConfigDialog(Toplevel): labelIndentSizeTitle.pack(side=TOP,anchor=W,padx=5,pady=5) labelSpaceNumTitle.pack(side=TOP,anchor=W,padx=5) self.scaleSpaceNum.pack(side=TOP,padx=5,fill=X) - labeltabColsTitle.pack(side=TOP,anchor=W,padx=5) - self.scaleTabCols.pack(side=TOP,padx=5,fill=X) + #labeltabColsTitle.pack(side=TOP,anchor=W,padx=5) + #self.scaleTabCols.pack(side=TOP,padx=5,fill=X) return frame def CreatePageHighlight(self): @@ -921,17 +921,17 @@ class ConfigDialog(Toplevel): self.SetFontSample() def LoadTabCfg(self): - ##indent type radibuttons + ##indent type radiobuttons spaceIndent=idleConf.GetOption('main','Indent','use-spaces', default=1,type='bool') self.indentBySpaces.set(spaceIndent) ##indent sizes spaceNum=idleConf.GetOption('main','Indent','num-spaces', default=4,type='int') - tabCols=idleConf.GetOption('main','Indent','tab-cols', - default=4,type='int') + #tabCols=idleConf.GetOption('main','Indent','tab-cols', + # default=4,type='int') self.spaceNum.set(spaceNum) - self.tabCols.set(tabCols) + #self.tabCols.set(tabCols) def LoadThemeCfg(self): ##current theme type radiobutton |