mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
loading core keybindings via new config system plus
further devel of highlight handling
This commit is contained in:
parent
c597640515
commit
0cae01c496
8 changed files with 40 additions and 31 deletions
|
@ -120,8 +120,8 @@ class ConfigDialog(Toplevel):
|
|||
self.radioBg.config(state=DISABLED)
|
||||
self.fgHilite.set(1)
|
||||
else: #both fg and bg can be set
|
||||
self.radioFg.config(state=DISABLED)
|
||||
self.radioBg.config(state=DISABLED)
|
||||
self.radioFg.config(state=NORMAL)
|
||||
self.radioBg.config(state=NORMAL)
|
||||
self.fgHilite.set(1)
|
||||
self.SetColourSample()
|
||||
|
||||
|
@ -496,7 +496,7 @@ class ConfigDialog(Toplevel):
|
|||
colours=idleConf.GetHighlight(theme, self.themeElements[element][0])
|
||||
if element=='Cursor': #cursor sample needs special painting
|
||||
colours['background']=idleConf.GetHighlight(theme,
|
||||
'normal-text', fgBg='bg')
|
||||
'normal', fgBg='bg')
|
||||
apply(self.textHighlightSample.tag_config,
|
||||
(self.themeElements[element][0],),colours)
|
||||
|
||||
|
@ -558,11 +558,8 @@ class ConfigDialog(Toplevel):
|
|||
themeNames=self.themeElements.keys()
|
||||
themeNames.sort(self.__ThemeNameIndexCompare)
|
||||
self.optMenuHighlightTarget.SetMenu(themeNames,themeNames[0])
|
||||
sampleBg=idleConf.GetHighlight(currentOption,
|
||||
self.highlightTarget.get())['background']
|
||||
self.fgHilite.set(0)
|
||||
self.frameColourSet.config(bg=sampleBg)
|
||||
self.PaintThemeSample()
|
||||
self.SetHighlightTarget()
|
||||
|
||||
def __ThemeNameIndexCompare(self,a,b):
|
||||
if self.themeElements[a][1]<self.themeElements[b][1]: return -1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue