Tkinter: Missing the last piece of the puzzle

Russell E. Owen rowen at cesmail.net
Wed Feb 27 15:39:28 EST 2008


In article 
<c558d504-9162-4e6e-be5a-fd7334e90375 at p43g2000hsc.googlegroups.com>,
 MartinRinehart at gmail.com wrote:

> Simon Forman wrote:
> > yes! check out 
> > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/464635
> >
> > HTH,
> > ~Simon
> 
> Thanks, Simon. Looks like that will do it.
> 
> Actually, it looks like that will overdo it. I'll be setting File/Save
> to enabled after every keystroke. Ideally, I'd like to set my statuses
> when the user clicks the File option or types Alt-F. This makes me
> wonder if there's a "mixin" that could find this event. Hmmm.

Set an internal state variables "isChanged" based on the Text callback 
and only modify the menu if the variable is set.

It's trickier to detect "significant" changes vs insigificant ones. 
Personally I would not bother to go that far.

-- Russell



More information about the Python-list mailing list