New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tkinter __init__ documentations sometimes missing valid keyword values #78335
Comments
Priority: Low Some of the Tkinter documentation is incomplete. I've only checked it on the Listbox so far, but some of the valid keyword arguments are missing. The one I noticed was "disabledforeground" which changes how the foreground color of text when the Listbox is in the disabled state or has a selection mode of none. I've noticed this across multiple versions of python, including Python 2.7 and Python 3.6, both of which accepted "disabledforeground" as a valid keyword without it being in the list shown in the help for Listbox.__init__ I found the disabledforeground keyword argument when looking at the Listbox documentation here: https://www.tcl.tk/man/tcl8.4/TkCmd/listbox.htm |
I'd like to work on this, if it's ok for everybody. |
By documentation, you mean the doc string for each widget, which is the basis for the help(widget) response. I checked that there do not seem to be any other issues open for the docstrings. Go ahead. Use https://www.tcl.tk/man/tcl8.6/TkCmd/contents.htm as the reference. C.E.: if you have a list of missing thing, can you post? This is normal priority. |
Ah, yes. That is what I meant to say. The doc string printed by help(widget) |
The official Tk documentation is not always correct. OPTIONS attributes in tests should contain full lists of supported options, and running tests produces warnings for missed options, like: ListboxTest.OPTIONS doesn't contain "justify". |
This is a list of all valid keywordarguments of Listbox.__init__() listed in the test file: The ones that are missing in the doc string: |
This are all the classes where the keywords are missing in the docs and their missing keywords: Checkbutton Entry Frame Label Radiobutton Text Spinbox Menubutton Message The missing keywords appear in the OPTIONS list in the test but not in the docstring. |
Few new options were added: see bpo-34189. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: