Skip to content

Commit 75b694f

Browse files
gh-86726: Document tkinter method-name equivalences
Note that Variable.initialize and trace are aliases of set and trace_variable, and fix a typo in the clipboard_get equivalence. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XWevzas4XVpjzedzR9gKVo
1 parent 26e5c28 commit 75b694f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/library/tkinter.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1881,7 +1881,7 @@ Base and mixin classes
18811881
first and ``STRING`` is used as a fallback.
18821882
The *displayof* keyword argument names a widget that determines the
18831883
display, and defaults to the root window of the application.
1884-
This is equivalent to ``selection_get(selection= 'CLIPBOARD')``.
1884+
This is equivalent to ``selection_get(selection='CLIPBOARD')``.
18851885

18861886
.. method:: option_add(pattern, value, priority=None)
18871887

@@ -5780,6 +5780,7 @@ Variable classes
57805780
.. method:: set(value)
57815781

57825782
Set the variable to *value*.
5783+
:meth:`initialize` is an alias of :meth:`!set`.
57835784

57845785
.. versionadded:: 3.3
57855786
The *initialize* spelling.
@@ -5826,6 +5827,7 @@ Variable classes
58265827
*mode* is one of the strings ``'r'``, ``'w'`` or ``'u'``, for read, write
58275828
or unset.
58285829
Return the internal name of the registered callback.
5830+
:meth:`trace` is an alias of :meth:`!trace_variable`.
58295831

58305832
.. deprecated:: 3.6
58315833
Use :meth:`trace_add` instead. This method wraps a Tcl feature that
@@ -5897,6 +5899,7 @@ Variable classes
58975899
.. method:: set(value)
58985900

58995901
Set the variable to *value*, converting it to a boolean.
5902+
:meth:`initialize` is an alias of :meth:`!set`.
59005903

59015904
.. versionadded:: 3.3
59025905
The *initialize* spelling.

0 commit comments

Comments
 (0)