From: Marcus <li...@wo...> - 2002-07-05 12:11:16
|
I think the vaildators are a good idea. If I understand the concept correctly, then this is how Perl/Tk works, only you have no choice. The downside is that when you "bind" a variable to a control, then any changes while you are working with the variable appear immediately in the GUI. An example that caused me and my beta tester many many hours of grief is the following. I had to escape backslashes when storing paths in a config file, in the GUI they were unescaped. As you can imagine unescaped backslashes can cause amazing problems when let loose. The only workaround was to keep copying variables back and forth, and making lots of temp variables. Only a word of warning, which should be at the top of the docs, in form of a "When to use..". Otherwise, I am in favour of the validators, since they can be very useful. Marcus |