Skip to content

Commit 55db17e

Browse files
serhiy-storchakaclaude
authored andcommitted
gh-88647: Fix tkinter config() docs for synonym options (GH-153544)
(cherry picked from commit d52cfd2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 467fab9 commit 55db17e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Doc/library/tkinter.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,8 @@ arguments, or by calling the :meth:`~Misc.keys` method on that widget.
541541
The return value of these calls is a dictionary whose key is the name of the
542542
option as a string (for example, ``'relief'``) and whose values are 5-tuples.
543543

544-
Some options, like ``bg`` are synonyms for common options with long names
545-
(``bg`` is shorthand for "background"). Passing the ``config()`` method the name
546-
of a shorthand option will return a 2-tuple, not 5-tuple. The 2-tuple passed
547-
back will contain the name of the synonym and the "real" option (such as
548-
``('bg', 'background')``).
544+
Some options, like ``bg``, are synonyms for common options with long names
545+
(``bg`` is shorthand for "background").
549546

550547
+-------+---------------------------------+--------------+
551548
| Index | Meaning | Example |

0 commit comments

Comments
 (0)