In an attempt to create a Python Entry widget with limited input(3 or 4 characters), I found this
Knowing nothing yet about validation, my question is this: can the 'subclass' for max length in that tutorial be used as its own class, referencing the entry widget as its parent instead of 'ValidatingEntry', or is all the legwork above it (validating) necessary? Is there any shorter way to accomplish this?
Then I saw this question and its answer:
Considering doing something like that. Then I discovered the builtin 'setattr' function. Is it possible to apply this to a new instance of the class 'Entry' and use it to limit characters?
I should clarify- I'm trying to apply this limit to 3 entry widgets- two with a 3 character limit and one with a 4 character limit (a phone number)
Thanks.