Replies: 1 comment
-
Well, a partial answer here that is sufficient for my needs. The %W paramenter can be used to get/set a stringvar associated with the widget. In the init function of my class, i saved a pointer to the parent (parent passed in as part of the constructor)
Then in the validation routine:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a bunch of entry widgets (think foo1, foo2, foo3, ... foo99 used as the unique ID) etc where the validation is similar. But perhaps different ranges depending on which foo? is called.
No problem creating a common validation callback that is used by all of these entry widgets. However, I would like to know the name or some other identifier of which of my many entry field widgets cause the validation callback to occur. Thought it was the %W, but only seems to show a generic widget tree and the last entry is not obviously mappable to my entry field widgets.
BTW, I am generating code as a "Custom Widget".
Bet I am missing something... That checkbox "All IDs as class attributes looks like it might help, but can't figure out how to use it.
Thanks!
Mark
Beta Was this translation helpful? Give feedback.
All reactions