in reply to Re^2: Entry widget, default value and validatecommand
in thread Entry widget, default value and validatecommand

Note that there is a subtle difference between this code and your original code. Your original code was validating new characters as they were added (and characters being deleted). This code validates the whole string, which I suspect is more likely what you wanted anyway. This way you can easily add range validation and stuff too.


Perl is Huffman encoded by design.
  • Comment on Re^3: Entry widget, default value and validatecommand