[Idle-dev] Dealing with a few feature requests

Tal Einat taleinat at gmail.com
Fri May 25 15:16:19 CEST 2007


On 5/25/07, Tal Einat <taleinat at gmail.com> wrote:
>
> 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
> > people.
>
>
> Unbelievable - never believe what people tell you about Tk without
> checking for youself!
>
> 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:
>
>     def ActivateConfigChanges(self):
>         "Dynamically apply configuration changes"
>         winInstances=self.parent.instance_dict.keys()
>         theme = idleConf.CurrentTheme()
>         cursor_color = idleConf.GetHighlight(theme, 'cursor', fgBg='fg')
>         for instance in winInstances:
>             instance.ResetColorizer()
>             instance.ResetFont()
>             instance.set_notabs_indentwidth ()
>             instance.ApplyKeybindings()
>             instance.reset_help_menu_entries()
>             instance.text.configure(insertbackground= cursor_color)
>

SourceForge patch
1725576<https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1725576&group_id=5470>
.

- Tal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/idle-dev/attachments/20070525/fdce3c63/attachment.html 


More information about the IDLE-dev mailing list