[Idle-dev] CVS: idle config-main.def,1.16,1.17 configDialog.py,1.53,1.54
Kurt B. Kaiser
kbk@users.sourceforge.net
Mon, 26 May 2003 13:35:55 -0700
Update of /cvsroot/idlefork/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv7177
Modified Files:
config-main.def configDialog.py
Log Message:
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
Index: config-main.def
===================================================================
RCS file: /cvsroot/idlefork/idle/config-main.def,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** config-main.def 26 May 2003 06:23:10 -0000 1.16
--- config-main.def 26 May 2003 20:35:53 -0000 1.17
***************
*** 47,53 ****
[EditorWindow]
width= 80
! height= 30
font= courier
! font-size= 12
font-bold= 0
encoding= none
--- 47,53 ----
[EditorWindow]
width= 80
! height= 40
font= courier
! font-size= 10
font-bold= 0
encoding= none
Index: configDialog.py
===================================================================
RCS file: /cvsroot/idlefork/idle/configDialog.py,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -r1.53 -r1.54
*** configDialog.py 26 May 2003 06:23:10 -0000 1.53
--- configDialog.py 26 May 2003 20:35:53 -0000 1.54
***************
*** 94,98 ****
#self.tabCols=IntVar(self)
self.indentBySpaces=BooleanVar(self)
! self.editFont=tkFont.Font(self,('courier',12,'normal'))
##widget creation
#body frame
--- 94,98 ----
#self.tabCols=IntVar(self)
self.indentBySpaces=BooleanVar(self)
! self.editFont=tkFont.Font(self,('courier',10,'normal'))
##widget creation
#body frame
***************
*** 838,842 ****
def OnListFontButtonRelease(self,event):
! self.fontName.set(self.listFontName.get(ANCHOR))
self.SetFontSample()
--- 838,843 ----
def OnListFontButtonRelease(self,event):
! font = self.listFontName.get(ANCHOR)
! self.fontName.set(font.lower())
self.SetFontSample()
***************
*** 957,963 ****
configuredFont=idleConf.GetOption('main','EditorWindow','font',
default='courier')
! self.fontName.set(configuredFont)
! if configuredFont in fonts:
! currentFontIndex=fonts.index(configuredFont)
self.listFontName.see(currentFontIndex)
self.listFontName.select_set(currentFontIndex)
--- 958,966 ----
configuredFont=idleConf.GetOption('main','EditorWindow','font',
default='courier')
! 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)
***************
*** 965,969 ****
##font size dropdown
fontSize=idleConf.GetOption('main','EditorWindow','font-size',
! default='12')
self.optMenuFontSize.SetMenu(('7','8','9','10','11','12','13','14',
'16','18','20','22'),fontSize )
--- 968,972 ----
##font size dropdown
fontSize=idleConf.GetOption('main','EditorWindow','font-size',
! default='10')
self.optMenuFontSize.SetMenu(('7','8','9','10','11','12','13','14',
'16','18','20','22'),fontSize )