I have replace the kw dict with dict.pop and dict.get methods to allow users to override the standard values while keeping the style the same.
I have also conformed the init args to be the same as standard widgets using master, cnf and kw with default values.
This should be a drop in replacement to the OptionMenu.init method.
(FYI i dont know how to do PRs yet and the doc string probably needs editing.)
The text was updated successfully, but these errors were encountered:
AceScottie
changed the title
tkinter OptionMeny conform to standard widget options,
tkinter OptionMenu conform to standard widget options,
Jan 24, 2023
The current implementation of tkinter.OptionMenu creates the widget in a manner different from all other tkinter widgets.
cpython/Lib/tkinter/__init__.py
Line 4020 in 38cc24f
Here is a proposed method to deal with this widget.
I have replace the kw dict with
dict.pop
anddict.get
methods to allow users to override the standard values while keeping the style the same.I have also conformed the init args to be the same as standard widgets using master, cnf and kw with default values.
This should be a drop in replacement to the OptionMenu.init method.
(FYI i dont know how to do PRs yet and the doc string probably needs editing.)
The text was updated successfully, but these errors were encountered: