From: Hidetoshi NAGAI Date: 2006-11-12T10:30:42+09:00 Subject: Re: TkEntry validation? From: "Matt Maycock" Subject: TkEntry validation? Date: Sun, 12 Nov 2006 04:20:49 +0900 Message-ID: > I wrote the following to make some of my input validation from > TkEntry's a bit easier. I thought some others might be interested > (still has some parts that could use work) Why don't you use 'validatecommand' (or 'vcmd') option and on? Of course I know that API of validation of entry widgets is very basic. But I think that you can make some part of your code simple. If you don't see the option, please read 'VALIDATION' part of the Tcl/Tk's manual of entry widgets. You'll be able to see examples of its usage in "ext/tk/sample/demos-en/entry3.rb" on Ruby's source tree. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)