Skip to content

Commit 45e6891

Browse files
committed
Fix typo reported by Kent Engström, and a bunch of broken markup.
1 parent 7730e14 commit 45e6891

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

Doc/lib/tkinter.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -471,17 +471,17 @@ \subsubsection{Setting Options
471471

472472
The options supported by a given widget are listed in that widget's
473473
man page, or can be queried at runtime by calling the
474-
\kbd{config()} method with arguments, or by calling the keys()
475-
method on that widget. The return value of these calls is a dictionary
476-
whose key is the name of the option (e.g. \kbd{relief}) and whose
477-
values are 5 tuples.
478-
479-
(Some options, like \kbd{bg} are synonyms for common options with
480-
hard-to-type names (\kbd{bg} is shorthand for "background").
481-
Passing the \kbd{config()} method the name of a
482-
shorthand option will return a 2-tuple, not 5-tuple. The 2-tuple
483-
passed back will contain the name of the synonym ``real''
484-
option. (\kbd{bg}, \kbd{background}))
474+
\method{config()} method without arguments, or by calling the
475+
\method{keys()} method on that widget. The return value of these
476+
calls is a dictionary whose key is the name of the option as a string
477+
(for example, \code{'relief'}) and whose values are 5-tuples.
478+
479+
Some options, like \code{bg} are synonyms for common options with long
480+
names (\code{bg} is shorthand for "background"). Passing the
481+
\code{config()} method the name of a shorthand option will return a
482+
2-tuple, not 5-tuple. The 2-tuple passed back will contain the name of
483+
the synonym and the ``real'' option (such as \code{('bg',
484+
'background')}).
485485

486486
\begin{tableiii}{c|l|l}{textrm}{Index}{Meaning}{Example}
487487
\lineiii{0}{option name} {\code{'relief'}}

0 commit comments

Comments
 (0)