Issue 34154: Tkinter init documentations sometimes missing valid keyword values (original) (raw)
This is a list of all valid keywordarguments of Listbox.init() listed in the test file: 'activestyle', 'background', 'borderwidth', 'cursor', 'disabledforeground', 'exportselection', 'font', 'foreground', 'height', 'highlightbackground', 'highlightcolor', 'highlightthickness', 'listvariable', 'relief', 'selectbackground', 'selectborderwidth', 'selectforeground', 'selectmode', 'setgrid', 'state', 'takefocus', 'width', 'xscrollcommand', 'yscrollcommand'
The ones that are missing in the doc string: 'activestyle', 'disabledforeground', 'listvariable','state'
This are all the classes where the keywords are missing in the docs and their missing keywords: TopLevel ['padx', 'pady']
Checkbutton ['compound', 'offrelief', 'overrelief', 'tristateimage', 'tristatevalue']
Entry ['disabledbackground', 'disabledforeground', 'readonlybackground']
Frame ['padx', 'pady']
Label ['compound']
Radiobutton ['compound', 'offrelief', 'overrelief', 'tristateimage', 'tristatevalue']
Text ['blockcursor', 'endline', 'inactiveselectbackground', 'insertunfocussed', 'startline', 'tabstyle']
Spinbox ['validatecommand', 'values']
Menubutton ['activebackground', 'activeforeground', 'anchor', 'background', 'bitmap', 'borderwidth', 'compound', 'cursor', 'direction', 'disabledforeground', 'font', 'foreground', 'height', 'highlightbackground', 'highlightcolor', 'highlightthickness', 'image', 'indicatoron', 'justify', 'menu', 'padx', 'pady', 'relief', 'state', 'takefocus', 'text', 'textvariable', 'underline', 'width', 'wraplength']
Message ['anchor', 'aspect', 'background', 'borderwidth', 'cursor', 'font', 'foreground', 'highlightbackground', 'highlightcolor', 'highlightthickness', 'justify', 'padx', 'pady', 'relief', 'takefocus', 'text', 'textvariable', 'width']
The missing keywords appear in the OPTIONS list in the test but not in the docstring.