-
-
Notifications
You must be signed in to change notification settings - Fork 37.4k
add ability to specify name for tk.OptionMenu and ttk.OptionMenu #130482
Copy link
Copy link
Closed
Labels
3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-tkintertype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-tkintertype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
Proposal:
In current implementation of
tk.OptionMenuandttk.OptionMenu, we can not specify name to them since adding additionalkwargsraisesunknown optionerrorSince after initialization of widget
namecannot be changed, hence we cannot specify custom name such asgames_option_menuetc to theOptionMenu.Ability to specify name to a widget is very handy, since it helps programmer to easily gain access to widget between diffrent scopes and this ability is lacking in
OptionMenuwidget.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
tkinter.OptionMenuandtkinter.ttk.OptionMenu#130502