Tkinter/Pmw and focus events

Timothy Grant tjg at avalongroup.net
Thu Jan 20 19:08:35 EST 2000


Hi again,

Back to my other pet subject at the moment, Tkinter. I've been using Pmw
and having really good success with it, especially since I develop on
Linux and my clients run on Win98! Pmw allows one to assign the
attribute 'modifiedcommand' to many of its widgets. That function is
called any time the widget is modified. Is there a similar attribute for
got-focus and lost-focus events?

I'd like to implement something like is in Delphi/Paradox where when the
cursor is outside the field the numbers are formatted all pretty
($1,234.56), and when the cursor is inside the field it is automatically
reformatted to a 'normal' number (1234.56).


-- 
Stand Fast,
    tjg.

Chief Technology Officer              tjg at exceptionalminds.com
Red Hat Certified Engineer            www.exceptionalminds.com
Avalon Technology Group, Inc.                   (503) 246-3630
>>>>>>>>>>>>EXCEPTIONAL MINDS, INNOVATIVE PRODUCTS<<<<<<<<<<<<




More information about the Python-list mailing list