Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Doc/library/tkinter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5042,6 +5042,9 @@ Widget classes
dropped; *from* is spelled ``from_`` because :keyword:`from` is a Python
keyword.

With a non-integer *resolution*, see :ref:`numeric values and the locale
<tkinter-numeric-locale>`.

.. method:: get()

Return the current value of the scale.
Expand Down Expand Up @@ -5140,6 +5143,9 @@ Widget classes
text.
Inherits from :class:`Widget` and :class:`XView`.

With a non-integer *increment*, see :ref:`numeric values and the locale
<tkinter-numeric-locale>`.

Many of the methods take an *index* argument identifying a character in the
spinbox's string.
As described in the Tk ``spinbox`` manual page, *index* may be a numeric
Expand Down Expand Up @@ -6028,6 +6034,18 @@ Variable classes

Return the value of the variable as a :class:`float`.

.. _tkinter-numeric-locale:

.. note::

A floating-point value is always parsed with a period (``.``) as the
decimal separator, but :class:`Spinbox`, :class:`Scale` and
:class:`ttk.Spinbox <tkinter.ttk.Spinbox>` format it according to the
``LC_NUMERIC`` locale. Under a locale that uses a comma they produce a
value that :meth:`get` cannot read, raising :exc:`TclError`. Set
``LC_NUMERIC`` to a locale that uses a period (such as ``'C'``) to avoid
this.


.. class:: BooleanVar(master=None, value=None, name=None)

Expand Down
3 changes: 3 additions & 0 deletions Doc/library/tkinter.ttk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@ ttk.Spinbox

.. class:: Spinbox

With a non-integer increment, see :ref:`numeric values and the locale
<tkinter-numeric-locale>`.

.. versionadded:: 3.8

.. method:: get()
Expand Down
Loading