summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/configDialog.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-05-26 20:35:53 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2003-05-26 20:35:53 (GMT)
commit053916959af8868715c9ce4b960c6607f6b12f12 (patch)
tree6c28be88bc927891d0128c702434f489120f353e /Lib/idlelib/configDialog.py
parentb44f16592f4f61b8d2f4c4a2f0a1a256e1679198 (diff)
downloadcpython-053916959af8868715c9ce4b960c6607f6b12f12.zip
cpython-053916959af8868715c9ce4b960c6607f6b12f12.tar.gz
cpython-053916959af8868715c9ce4b960c6607f6b12f12.tar.bz2
1. SF Bug 661676
The default font is not highlighted in the Options dialog when IDLEfork is first installed. 2. Reduce default font to 10 pt and increase default window height to give a better initial impression on Windows. M config-main.def M configDialog.py
Diffstat (limited to 'Lib/idlelib/configDialog.py')
-rw-r--r--Lib/idlelib/configDialog.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py
index bdf253b..af3e98a 100644
--- a/Lib/idlelib/configDialog.py
+++ b/Lib/idlelib/configDialog.py
@@ -93,7 +93,7 @@ class ConfigDialog(Toplevel):
self.spaceNum=IntVar(self)
#self.tabCols=IntVar(self)
self.indentBySpaces=BooleanVar(self)
- self.editFont=tkFont.Font(self,('courier',12,'normal'))
+ self.editFont=tkFont.Font(self,('courier',10,'normal'))
##widget creation
#body frame
frame=self.tabPages.pages['Fonts/Tabs']['page']
@@ -837,7 +837,8 @@ class ConfigDialog(Toplevel):
self.SetThemeType()
def OnListFontButtonRelease(self,event):
- self.fontName.set(self.listFontName.get(ANCHOR))
+ font = self.listFontName.get(ANCHOR)
+ self.fontName.set(font.lower())
self.SetFontSample()
def SetFontSample(self,event=None):
@@ -956,15 +957,17 @@ class ConfigDialog(Toplevel):
self.listFontName.insert(END,font)
configuredFont=idleConf.GetOption('main','EditorWindow','font',
default='courier')
- self.fontName.set(configuredFont)
- if configuredFont in fonts:
- currentFontIndex=fonts.index(configuredFont)
+ lc_configuredFont = configuredFont.lower()
+ self.fontName.set(lc_configuredFont)
+ lc_fonts = [s.lower() for s in fonts]
+ if lc_configuredFont in lc_fonts:
+ currentFontIndex = lc_fonts.index(lc_configuredFont)
self.listFontName.see(currentFontIndex)
self.listFontName.select_set(currentFontIndex)
self.listFontName.select_anchor(currentFontIndex)
##font size dropdown
fontSize=idleConf.GetOption('main','EditorWindow','font-size',
- default='12')
+ default='10')
self.optMenuFontSize.SetMenu(('7','8','9','10','11','12','13','14',
'16','18','20','22'),fontSize )
##fontWeight