|
From: Joe E. <jen...@fl...> - 2005-08-16 21:19:55
|
> I found what I think is a difference in the tile entry and I believe I > have a small test case here: >[ ... ] > If you run the program as is, it works fine. What should happen is > when you click the button, the tv1 (text variable 1) is updated via the > called routine, and the validate command should update the tv2 (text > variable 2). This is a known (intentional, and documented) difference. See <URL: http://tktable.sourceforge.net/tile/doc/entry.html >, section "VALIDATION", subsection "DIFFERENCES FROM TK ENTRY WIDGET VALIDATION". Summarizing, the main differences are: (1) ttk::entry widgets don't set '-validate none' if a validation script changes the value; and (2) setting the linked -textvariable doesn't trigger validation. There are a couple other minor differences having to do with when errors get reported (the core [entry] widget uses an idle handler in some circumstances where the [ttk::entry] reports them immediately), and [ttk::entry] widget validation has some additional interactions with the 'invalid' widget state, but those are the main ones that may impact existing code. > Is this a bug? It might be a design change and I should change my > stuff. I realize from reading the doc that having a textvariable and a > validatecommand might be problematic. As far as I know, the [ttk::entry] widget doesn't have any problems if -textvariable and -validatecommand are both specified (subject to #2, above). --Joe English jen...@fl... |