Kaydet (Commit) cca976b1 authored tarafından Kurt B. Kaiser's avatar Kurt B. Kaiser

Allow cursor color change w/o restart. Patch 1725576 Tal Einat.

üst 68995867
...@@ -3,6 +3,8 @@ What's New in IDLE 2.6a1? ...@@ -3,6 +3,8 @@ What's New in IDLE 2.6a1?
*Release date: XX-XXX-200X* *Release date: XX-XXX-200X*
- Update cursor color without restarting. Patch 1725576 Tal Einat.
- Allow keyboard interrupt only when user code is executing in subprocess. - Allow keyboard interrupt only when user code is executing in subprocess.
Patch 1225 Tal Einat (reworked from IDLE-Spoon). Patch 1225 Tal Einat (reworked from IDLE-Spoon).
......
...@@ -1118,12 +1118,15 @@ class ConfigDialog(Toplevel): ...@@ -1118,12 +1118,15 @@ class ConfigDialog(Toplevel):
def ActivateConfigChanges(self): def ActivateConfigChanges(self):
"Dynamically apply configuration changes" "Dynamically apply configuration changes"
winInstances=self.parent.instance_dict.keys() winInstances=self.parent.instance_dict.keys()
theme = idleConf.CurrentTheme()
cursor_color = idleConf.GetHighlight(theme, 'cursor', fgBg='fg')
for instance in winInstances: for instance in winInstances:
instance.ResetColorizer() instance.ResetColorizer()
instance.ResetFont() instance.ResetFont()
instance.set_notabs_indentwidth() instance.set_notabs_indentwidth()
instance.ApplyKeybindings() instance.ApplyKeybindings()
instance.reset_help_menu_entries() instance.reset_help_menu_entries()
instance.text.configure(insertbackground=cursor_color)
def Cancel(self): def Cancel(self):
self.destroy() self.destroy()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment