| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Wrap the Tk "validate" widget command of the entry and spinbox widgets as the methods Entry.validate() and Spinbox.validate(), forcing an evaluation of the validatecommand independently of the validate option and returning whether the value is valid. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XWevzas4XVpjzedzR9gKVo
Documentation build overview5 files changed · ± 5 modified ± Modified |
Sorry, something went wrong.
…onGH-151879) Wrap the Tk "validate" widget command of the entry and spinbox widgets as the methods Entry.validate() and Spinbox.validate(), forcing an evaluation of the validatecommand independently of the validate option and returning whether the value is valid. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
Wrap the Tk validate widget command of the entry and spinbox widgets, which previously had no tkinter wrapper and was reachable only through tk.call().
Entry.validate() and Spinbox.validate() force an evaluation of the command given by the validatecommand option, independently of the conditions specified by the validate option (by temporarily setting validate to all), and return whether the value is considered valid.
The command is available since Tk 8.5, so no version guard is needed. The shared test in EntryTest is inherited by SpinboxTest, covering both widgets.
🤖 Generated with Claude Code