[Idle-dev] Dealing with a few feature requests
taleinat at gmail.com
Fri May 25 11:54:02 CEST 2007
On 5/24/07, Tal Einat <taleinat at gmail.com> wrote:
> * Cursor color change: For changes to the cursor's color to take effect,
> IDLE must be restarted. This is a known issue with Tk's Text widget, so I
> don't see how we could work around this... Still, we could have a popup
> message appear after a change to the cursor color in the config dialog,
> informing the user of this. I've seen several bug reports on this already,
> and have heard by word of mouth that this has frustrated several more
Unbelievable - never believe what people tell you about Tk without checking
I just discovered that Tk's Text widget is just fine! IDLE's configHandler
wasn't bothering to update the cursor color. I just added 3 lines of code,
and -voila-! it works.
I'll upload a patch to SF in a bit, but for those of you who want to try it
out, copy/paste this into configDialog.py:
"Dynamically apply configuration changes"
theme = idleConf.CurrentTheme()
cursor_color = idleConf.GetHighlight(theme, 'cursor', fgBg='fg')
for instance in winInstances:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IDLE-dev