| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Arbitrary keyword arguments are now forwarded to the underlying Menubutton and can override OptionMenu's default appearance options. The positional API is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Documentation build overview3 files changed ± library/tkinter.html ± whatsnew/3.16.html ± whatsnew/changelog.html |
Sorry, something went wrong.
…nu (pythonGH-151959) Arbitrary keyword arguments are now forwarded to the underlying Menubutton and can override OptionMenu's default appearance options. The positional API is unchanged. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
tkinter.OptionMenu now forwards arbitrary keyword arguments to the underlying Menubutton instead of rejecting all but command and name.
They can also override OptionMenu's default appearance options (borderwidth, relief, anchor, etc.), whose values are otherwise kept.
The positional variable/value/*values API is unchanged, so this is backward compatible.
Unknown options are now reported by Tk itself (unknown option "-spam") rather than by a hand-rolled message.