chunk_id stringlengths 36 36 | source stringclasses 35
values | source_url stringlengths 0 290 | upstream_license stringclasses 1
value | document_id stringlengths 36 36 | chunk_index int64 0 324k | retrieved_at stringclasses 2
values | chunker_version stringclasses 4
values | content_hash stringlengths 15 64 | content stringlengths 50 44.7k | namespace stringclasses 9
values | source_name stringclasses 35
values | raw_text stringlengths 50 44.7k | cleaned_text stringlengths 50 44.7k | tags stringclasses 49
values | collection_name stringclasses 11
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1640a3ce-a25c-45f5-9370-9eca903b7364 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,941 | supabase-export-v2 | d445744cf053e800 | :file:`.start` files are processed after all :file:`.pth` path extensions have been applied to :data:`sys.path`, ensuring that paths are available before any startup code runs.
Unlike :data:`sys.path` extensions from :file:`.pth` files, duplicate entry
points are **not** de-duplicated --- if an entry point appears more... | trusted_official_docs | CPython Docs | :file:`.start` files are processed after all :file:`.pth` path extensions have been applied to :data:`sys.path`, ensuring that paths are available before any startup code runs.
Unlike :data:`sys.path` extensions from :file:`.pth` files, duplicate entry
points are **not** de-duplicated --- if an entry point appears more... | :file:`.start` files are processed after all :file:`.pth` path extensions have been applied to :data:`sys.path`, ensuring that paths are available before any startup code runs.
Unlike :data:`sys.path` extensions from :file:`.pth` files, duplicate entry
points are **not** de-duplicated --- if an entry point appears more... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1b6c8611-93bb-4220-b543-d93f31dcfe02 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,991 | supabase-export-v2 | a517dd04d5ed7a9e | .. function:: main()
Adds all the standard site-specific directories to the module search
path. This function is called automatically when this module is imported,
unless the Python interpreter was started with the :option:`-S` flag. | trusted_official_docs | CPython Docs | .. function:: main()
Adds all the standard site-specific directories to the module search
path. This function is called automatically when this module is imported,
unless the Python interpreter was started with the :option:`-S` flag. | .. function:: main()
Adds all the standard site-specific directories to the module search
path. This function is called automatically when this module is imported,
unless the Python interpreter was started with the :option:`-S` flag. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1bb6f480-5c1b-4d6e-b552-3a6afcf2efa7 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,924 | supabase-export-v2 | afa169b8ebc0c2b8 | Path extensions (:file:`.pth` files) ------------------------------------
:file:`{name}.pth` contains additional items (one per line) to be appended to
``sys.path``. Items that name non-existing directories are never added to
``sys.path``, and no check is made that the item refers to a directory rather
than a file. No ... | trusted_official_docs | CPython Docs | Path extensions (:file:`.pth` files) ------------------------------------
:file:`{name}.pth` contains additional items (one per line) to be appended to
``sys.path``. Items that name non-existing directories are never added to
``sys.path``, and no check is made that the item refers to a directory rather
than a file. No ... | Path extensions (:file:`.pth` files) ------------------------------------
:file:`{name}.pth` contains additional items (one per line) to be appended to
``sys.path``. Items that name non-existing directories are never added to
``sys.path``, and no check is made that the item refers to a directory rather
than a file. No ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1fd67b28-4b71-4b7b-b6e7-b33d26d66193 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,958 | supabase-export-v2 | 10ca94fb5d032c7e | /usr/local/lib/pythonX.Y/site-packages/bar /usr/local/lib/pythonX.Y/site-packages/foo
Note that :file:`bletch` is omitted because it doesn't exist; the :file:`bar`
directory precedes the :file:`foo` directory because :file:`bar.pth` comes
alphabetically before :file:`foo.pth`; and :file:`spam` is omitted because it is
... | trusted_official_docs | CPython Docs | /usr/local/lib/pythonX.Y/site-packages/bar /usr/local/lib/pythonX.Y/site-packages/foo
Note that :file:`bletch` is omitted because it doesn't exist; the :file:`bar`
directory precedes the :file:`foo` directory because :file:`bar.pth` comes
alphabetically before :file:`foo.pth`; and :file:`spam` is omitted because it is
... | /usr/local/lib/pythonX.Y/site-packages/bar /usr/local/lib/pythonX.Y/site-packages/foo
Note that :file:`bletch` is omitted because it doesn't exist; the :file:`bar`
directory precedes the :file:`foo` directory because :file:`bar.pth` comes
alphabetically before :file:`foo.pth`; and :file:`spam` is omitted because it is
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
20b956a5-e28d-4e67-8e1a-4a4c2343dcbe | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,938 | supabase-export-v2 | 3e73a3512f752c95 | .. versionadded:: next
A startup entry point file is a file whose name has the form
:file:`{name}.start` and exists in one of the site-packages directories
described above. Each file specifies entry points to be called during
interpreter startup, using the ``pkg.mod:callable`` syntax understood by
:func:`pkgutil.resolv... | trusted_official_docs | CPython Docs | .. versionadded:: next
A startup entry point file is a file whose name has the form
:file:`{name}.start` and exists in one of the site-packages directories
described above. Each file specifies entry points to be called during
interpreter startup, using the ``pkg.mod:callable`` syntax understood by
:func:`pkgutil.resolv... | .. versionadded:: next
A startup entry point file is a file whose name has the form
:file:`{name}.start` and exists in one of the site-packages directories
described above. Each file specifies entry points to be called during
interpreter startup, using the ``pkg.mod:callable`` syntax understood by
:func:`pkgutil.resolv... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
20f14415-b900-45d5-88ff-c0c69060f86a | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,940 | supabase-export-v2 | 17caa802de9df610 | reference in the form ``pkg.mod:callable``. The colon and callable portion are mandatory. Each callable is invoked with no arguments, and any return value is discarded.
:file:`.start` files are processed after all :file:`.pth` path extensions
have been applied to :data:`sys.path`, ensuring that paths are available
befo... | trusted_official_docs | CPython Docs | reference in the form ``pkg.mod:callable``. The colon and callable portion are mandatory. Each callable is invoked with no arguments, and any return value is discarded.
:file:`.start` files are processed after all :file:`.pth` path extensions
have been applied to :data:`sys.path`, ensuring that paths are available
befo... | reference in the form ``pkg.mod:callable``. The colon and callable portion are mandatory. Each callable is invoked with no arguments, and any return value is discarded.
:file:`.start` files are processed after all :file:`.pth` path extensions
have been applied to :data:`sys.path`, ensuring that paths are available
befo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
27b4face-cd7c-4201-87fc-71c4dc5f9881 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,943 | supabase-export-v2 | 9bbc3de48e6ded6f | an exception occurs during resolution or invocation of an entry point, a traceback is printed to :data:`sys.stderr` and processing continues with the remaining entry points.
:file:`.start` files must be encoded in UTF-8. | trusted_official_docs | CPython Docs | an exception occurs during resolution or invocation of an entry point, a traceback is printed to :data:`sys.stderr` and processing continues with the remaining entry points.
:file:`.start` files must be encoded in UTF-8. | an exception occurs during resolution or invocation of an entry point, a traceback is printed to :data:`sys.stderr` and processing continues with the remaining entry points.
:file:`.start` files must be encoded in UTF-8. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
28304821-8f57-4a6e-895b-944423e468c3 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,933 | supabase-export-v2 | 5ae3cb027fd73351 | .. deprecated-removed:: next 3.20
Decoding :file:`{name}.pth` files in any encoding other than ``utf-8-sig``
is deprecated in Python 3.15, and support for decoding from the locale
encoding will be removed in Python 3.20. | trusted_official_docs | CPython Docs | .. deprecated-removed:: next 3.20
Decoding :file:`{name}.pth` files in any encoding other than ``utf-8-sig``
is deprecated in Python 3.15, and support for decoding from the locale
encoding will be removed in Python 3.20. | .. deprecated-removed:: next 3.20
Decoding :file:`{name}.pth` files in any encoding other than ``utf-8-sig``
is deprecated in Python 3.15, and support for decoding from the locale
encoding will be removed in Python 3.20. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2884545c-c4f5-4102-bfb0-64696f6a67bd | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,930 | supabase-export-v2 | 2a3e20b8ae67d83a | deprecation period, such lines are still executed (except in the case below), but a diagnostic message is emitted only when the :option:`-v` flag is given.
``import`` lines in :file:`{name}.pth` are silently ignored when a
:ref:`matching <site-start-files>` :file:`{name}.start` file exists. | trusted_official_docs | CPython Docs | deprecation period, such lines are still executed (except in the case below), but a diagnostic message is emitted only when the :option:`-v` flag is given.
``import`` lines in :file:`{name}.pth` are silently ignored when a
:ref:`matching <site-start-files>` :file:`{name}.start` file exists. | deprecation period, such lines are still executed (except in the case below), but a diagnostic message is emitted only when the :option:`-v` flag is given.
``import`` lines in :file:`{name}.pth` are silently ignored when a
:ref:`matching <site-start-files>` :file:`{name}.start` file exists. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2bd4a966-1036-4e00-8d68-3c5c87baa4b9 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,915 | supabase-export-v2 | 055c775e20f3acbe | .. versionchanged:: 3.5 Support for the "site-python" directory has been removed.
.. versionchanged:: 3.13
On Unix, :term:`Free threading <free threading>` Python installations are
identified by the "t" suffix in the version-specific directory name, such as
:file:`lib/python3.13t/`. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.5 Support for the "site-python" directory has been removed.
.. versionchanged:: 3.13
On Unix, :term:`Free threading <free threading>` Python installations are
identified by the "t" suffix in the version-specific directory name, such as
:file:`lib/python3.13t/`. | .. versionchanged:: 3.5 Support for the "site-python" directory has been removed.
.. versionchanged:: 3.13
On Unix, :term:`Free threading <free threading>` Python installations are
identified by the "t" suffix in the version-specific directory name, such as
:file:`lib/python3.13t/`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
385ec735-b7b6-4bc5-a5f8-643107df7e08 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,917 | supabase-export-v2 | 07ffd45562c157dc | .. versionchanged:: 3.14
:mod:`!site` is no longer responsible for updating :data:`sys.prefix` and
:data:`sys.exec_prefix` on :ref:`sys-path-init-virtual-environments`. This is
now done during the :ref:`path initialization <sys-path-init>`. As a result,
under :ref:`sys-path-init-virtual-environments`, :data:`sys.pre... | trusted_official_docs | CPython Docs | .. versionchanged:: 3.14
:mod:`!site` is no longer responsible for updating :data:`sys.prefix` and
:data:`sys.exec_prefix` on :ref:`sys-path-init-virtual-environments`. This is
now done during the :ref:`path initialization <sys-path-init>`. As a result,
under :ref:`sys-path-init-virtual-environments`, :data:`sys.pre... | .. versionchanged:: 3.14
:mod:`!site` is no longer responsible for updating :data:`sys.prefix` and
:data:`sys.exec_prefix` on :ref:`sys-path-init-virtual-environments`. This is
now done during the :ref:`path initialization <sys-path-init>`. As a result,
under :ref:`sys-path-init-virtual-environments`, :data:`sys.pre... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
429919f8-734d-41bd-88e9-1bec269031fd | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,913 | supabase-export-v2 | 1cb88d3f2558d76e | .. index:: pair: site-packages; directory
It starts by constructing up to four directories from a head and a tail part. For the head part, it uses ``sys.prefix`` and ``sys.exec_prefix``; empty heads
are skipped. For the tail part, it uses the empty string and then
:file:`lib/site-packages` (on Windows) or
:file:`lib/py... | trusted_official_docs | CPython Docs | .. index:: pair: site-packages; directory
It starts by constructing up to four directories from a head and a tail part. For the head part, it uses ``sys.prefix`` and ``sys.exec_prefix``; empty heads
are skipped. For the tail part, it uses the empty string and then
:file:`lib/site-packages` (on Windows) or
:file:`lib/py... | .. index:: pair: site-packages; directory
It starts by constructing up to four directories from a head and a tail part. For the head part, it uses ``sys.prefix`` and ``sys.exec_prefix``; empty heads
are skipped. For the tail part, it uses the empty string and then
:file:`lib/site-packages` (on Windows) or
:file:`lib/py... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
42bac825-0165-4f38-a7b5-495b8bfd825b | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,992 | supabase-export-v2 | 8289e0807d20620b | to the module search path. This function is called automatically when this module is imported, unless the Python interpreter was started with the :option:`-S` flag.
.. versionchanged:: 3.3
This function used to be called unconditionally. | trusted_official_docs | CPython Docs | to the module search path. This function is called automatically when this module is imported, unless the Python interpreter was started with the :option:`-S` flag.
.. versionchanged:: 3.3
This function used to be called unconditionally. | to the module search path. This function is called automatically when this module is imported, unless the Python interpreter was started with the :option:`-S` flag.
.. versionchanged:: 3.3
This function used to be called unconditionally. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
45e0a41e-9138-4338-a6d3-2a78809d7f68 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 16,020 | supabase-export-v2 | 590d0d8e73f3f4d0 | .. seealso::
* :pep:`370` -- Per user site-packages directory
* :pep:`829` -- Startup entry points and the deprecation of import lines in ``.pth`` files
* :ref:`sys-path-init` -- The initialization of :data:`sys.path`. | trusted_official_docs | CPython Docs | .. seealso::
* :pep:`370` -- Per user site-packages directory
* :pep:`829` -- Startup entry points and the deprecation of import lines in ``.pth`` files
* :ref:`sys-path-init` -- The initialization of :data:`sys.path`. | .. seealso::
* :pep:`370` -- Per user site-packages directory
* :pep:`829` -- Startup entry points and the deprecation of import lines in ``.pth`` files
* :ref:`sys-path-init` -- The initialization of :data:`sys.path`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
496c1c09-b6f4-437c-8c3f-fd9bdc9e5cd8 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,972 | supabase-export-v2 | 1176f31242fc2674 | .. module:: sitecustomize
After these path manipulations, an attempt is made to import a module named
:mod:`!sitecustomize`, which can perform arbitrary site-specific customizations. It is typically created by a system administrator in the site-packages
directory. If this import fails with an :exc:`ImportError` or its ... | trusted_official_docs | CPython Docs | .. module:: sitecustomize
After these path manipulations, an attempt is made to import a module named
:mod:`!sitecustomize`, which can perform arbitrary site-specific customizations. It is typically created by a system administrator in the site-packages
directory. If this import fails with an :exc:`ImportError` or its ... | .. module:: sitecustomize
After these path manipulations, an attempt is made to import a module named
:mod:`!sitecustomize`, which can perform arbitrary site-specific customizations. It is typically created by a system administrator in the site-packages
directory. If this import fails with an :exc:`ImportError` or its ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5179ebe3-35aa-4011-bf48-25778554c763 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 16,005 | supabase-export-v2 | 59921a7cef9b0e38 | .. function:: getusersitepackages()
Return the path of the user-specific site-packages directory,
:data:`USER_SITE`. If it is not initialized yet, this function will also set
it, respecting :data:`USER_BASE`. To determine if the user-specific
site-packages was added to ``sys.path`` :data:`ENABLE_USER_SITE` should be... | trusted_official_docs | CPython Docs | .. function:: getusersitepackages()
Return the path of the user-specific site-packages directory,
:data:`USER_SITE`. If it is not initialized yet, this function will also set
it, respecting :data:`USER_BASE`. To determine if the user-specific
site-packages was added to ``sys.path`` :data:`ENABLE_USER_SITE` should be... | .. function:: getusersitepackages()
Return the path of the user-specific site-packages directory,
:data:`USER_SITE`. If it is not initialized yet, this function will also set
it, respecting :data:`USER_BASE`. To determine if the user-specific
site-packages was added to ``sys.path`` :data:`ENABLE_USER_SITE` should be... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
596976dc-c2bc-49a1-a10b-ecb33d3929bf | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,946 | supabase-export-v2 | 3308011643cd84b7 | .. note::
If a :file:`{name}.start` file exists alongside a :file:`{name}.pth` file
with the same base name, any ``import`` lines in the :file:`.pth` file are
ignored in favor of the entry points in the :file:`.start` file. | trusted_official_docs | CPython Docs | .. note::
If a :file:`{name}.start` file exists alongside a :file:`{name}.pth` file
with the same base name, any ``import`` lines in the :file:`.pth` file are
ignored in favor of the entry points in the :file:`.start` file. | .. note::
If a :file:`{name}.start` file exists alongside a :file:`{name}.pth` file
with the same base name, any ``import`` lines in the :file:`.pth` file are
ignored in favor of the entry points in the :file:`.start` file. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5a50e52e-52cb-46b0-8531-47461cbb9aea | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,961 | supabase-export-v2 | 12e2ccaa3395531e | foo.submod:initialize
Now, after ``sys.path`` has been extended as above, and before Python turns
control over to user code, the ``foo.submod`` module is imported and the
``initialize()`` function from that module is called. | trusted_official_docs | CPython Docs | foo.submod:initialize
Now, after ``sys.path`` has been extended as above, and before Python turns
control over to user code, the ``foo.submod`` module is imported and the
``initialize()`` function from that module is called. | foo.submod:initialize
Now, after ``sys.path`` has been extended as above, and before Python turns
control over to user code, the ``foo.submod`` module is imported and the
``initialize()`` function from that module is called. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6327f8fa-01e8-4051-ba8a-26625dcb88f2 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,925 | supabase-export-v2 | 8f68b7956270fa68 | to a directory rather than a file. No item is added to ``sys.path`` more than once. Blank lines and lines beginning with ``#`` are skipped.
For backward compatibility, lines starting with ``import`` (followed by space
or tab) are executed with :func:`exec`. | trusted_official_docs | CPython Docs | to a directory rather than a file. No item is added to ``sys.path`` more than once. Blank lines and lines beginning with ``#`` are skipped.
For backward compatibility, lines starting with ``import`` (followed by space
or tab) are executed with :func:`exec`. | to a directory rather than a file. No item is added to ``sys.path`` more than once. Blank lines and lines beginning with ``#`` are skipped.
For backward compatibility, lines starting with ``import`` (followed by space
or tab) are executed with :func:`exec`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
6655e915-6853-47d9-bb8b-901cde036154 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,976 | supabase-export-v2 | c731dd18e312d2a4 | disabled by :option:`-s`. If this import fails with an :exc:`ImportError` or its subclass exception, and the exception's :attr:`~ImportError.name` attribute equals ``'usercustomize'``, it is silently ignored.
Note that for some non-Unix systems, ``sys.prefix`` and ``sys.exec_prefix`` are
empty, and the path manipulatio... | trusted_official_docs | CPython Docs | disabled by :option:`-s`. If this import fails with an :exc:`ImportError` or its subclass exception, and the exception's :attr:`~ImportError.name` attribute equals ``'usercustomize'``, it is silently ignored.
Note that for some non-Unix systems, ``sys.prefix`` and ``sys.exec_prefix`` are
empty, and the path manipulatio... | disabled by :option:`-s`. If this import fails with an :exc:`ImportError` or its subclass exception, and the exception's :attr:`~ImportError.name` attribute equals ``'usercustomize'``, it is silently ignored.
Note that for some non-Unix systems, ``sys.prefix`` and ``sys.exec_prefix`` are
empty, and the path manipulatio... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
75c430c5-774c-43bf-abb2-824f8848dfa2 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 16,018 | supabase-export-v2 | 23c7f4dee4c11263 | If both options are given, user base and user site will be printed (always in this order), separated by :data:`os.pathsep`.
If any option is given, the script will exit with one of these values: ``0`` if
the user site-packages directory is enabled, ``1`` if it was disabled by the
user, ``2`` if it is disabled for secur... | trusted_official_docs | CPython Docs | If both options are given, user base and user site will be printed (always in this order), separated by :data:`os.pathsep`.
If any option is given, the script will exit with one of these values: ``0`` if
the user site-packages directory is enabled, ``1`` if it was disabled by the
user, ``2`` if it is disabled for secur... | If both options are given, user base and user site will be printed (always in this order), separated by :data:`os.pathsep`.
If any option is given, the script will exit with one of these values: ``0`` if
the user site-packages directory is enabled, ``1`` if it was disabled by the
user, ``2`` if it is disabled for secur... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
76c8b4a7-3675-40df-82f0-8efaa91daca8 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,964 | supabase-export-v2 | 6266c202225ac009 | Migrating from ``import`` lines in ``.pth`` files to ``.start`` files ---------------------------------------------------------------------
If your package currently ships a :file:`{name}.pth` file, you can keep all
``sys.path`` extension lines unchanged. Only ``import`` lines need to be
migrated. | trusted_official_docs | CPython Docs | Migrating from ``import`` lines in ``.pth`` files to ``.start`` files ---------------------------------------------------------------------
If your package currently ships a :file:`{name}.pth` file, you can keep all
``sys.path`` extension lines unchanged. Only ``import`` lines need to be
migrated. | Migrating from ``import`` lines in ``.pth`` files to ``.start`` files ---------------------------------------------------------------------
If your package currently ships a :file:`{name}.pth` file, you can keep all
``sys.path`` extension lines unchanged. Only ``import`` lines need to be
migrated. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
776e226e-9fae-4eee-8654-fa437ccd916f | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,948 | supabase-export-v2 | dfb45e748798de4d | .. note::
Executable lines (``import`` lines in :file:`{name}.pth` files and
:file:`{name}.start` file entry points) are always run at Python startup
(unless :option:`-S` is given to disable the ``site.py`` module entirely),
regardless of whether a particular module is actually going to be used. | trusted_official_docs | CPython Docs | .. note::
Executable lines (``import`` lines in :file:`{name}.pth` files and
:file:`{name}.start` file entry points) are always run at Python startup
(unless :option:`-S` is given to disable the ``site.py`` module entirely),
regardless of whether a particular module is actually going to be used. | .. note::
Executable lines (``import`` lines in :file:`{name}.pth` files and
:file:`{name}.start` file entry points) are always run at Python startup
(unless :option:`-S` is given to disable the ``site.py`` module entirely),
regardless of whether a particular module is actually going to be used. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7c237bdc-6b80-4361-a571-600f2586f5df | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,980 | supabase-export-v2 | 7f70a1a267350ad0 | :file:`~/.python_history` as the history save file. To disable it, delete (or override) the :data:`sys.__interactivehook__` attribute in your :mod:`sitecustomize` or :mod:`usercustomize` module or your :envvar:`PYTHONSTARTUP` file.
.. versionchanged:: 3.4
Activation of rlcompleter and history was made automatic. | trusted_official_docs | CPython Docs | :file:`~/.python_history` as the history save file. To disable it, delete (or override) the :data:`sys.__interactivehook__` attribute in your :mod:`sitecustomize` or :mod:`usercustomize` module or your :envvar:`PYTHONSTARTUP` file.
.. versionchanged:: 3.4
Activation of rlcompleter and history was made automatic. | :file:`~/.python_history` as the history save file. To disable it, delete (or override) the :data:`sys.__interactivehook__` attribute in your :mod:`sitecustomize` or :mod:`usercustomize` module or your :envvar:`PYTHONSTARTUP` file.
.. versionchanged:: 3.4
Activation of rlcompleter and history was made automatic. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7cfad563-18ab-431c-bd3f-b5afc394796c | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,994 | supabase-export-v2 | 0ca109eb9b70aab9 | .. function:: addsitedir(sitedir, known_paths=None, *, defer_processing_start_files=False)
Add a directory to sys.path and parse the :file:`.pth` and :file:`.start`
files found in that directory. Typically used in :mod:`sitecustomize` or
:mod:`usercustomize` (see above). | trusted_official_docs | CPython Docs | .. function:: addsitedir(sitedir, known_paths=None, *, defer_processing_start_files=False)
Add a directory to sys.path and parse the :file:`.pth` and :file:`.start`
files found in that directory. Typically used in :mod:`sitecustomize` or
:mod:`usercustomize` (see above). | .. function:: addsitedir(sitedir, known_paths=None, *, defer_processing_start_files=False)
Add a directory to sys.path and parse the :file:`.pth` and :file:`.start`
files found in that directory. Typically used in :mod:`sitecustomize` or
:mod:`usercustomize` (see above). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
82753353-6391-46cd-979b-6f971a142ce2 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,996 | supabase-export-v2 | 43cf7ca3f83bd6b9 | is an optional set of case-normalized paths used to prevent duplicate :data:`sys.path` entries. When ``None`` (the default), the set is built from the current :data:`sys.path`.
While :file:`.pth` and :file:`.start` files are always parsed, set
*defer_processing_start_files* to ``True`` to prevent processing the
start... | trusted_official_docs | CPython Docs | is an optional set of case-normalized paths used to prevent duplicate :data:`sys.path` entries. When ``None`` (the default), the set is built from the current :data:`sys.path`.
While :file:`.pth` and :file:`.start` files are always parsed, set
*defer_processing_start_files* to ``True`` to prevent processing the
start... | is an optional set of case-normalized paths used to prevent duplicate :data:`sys.path` entries. When ``None`` (the default), the set is built from the current :data:`sys.path`.
While :file:`.pth` and :file:`.start` files are always parsed, set
*defer_processing_start_files* to ``True`` to prevent processing the
start... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
82c14c79-9226-4557-93a6-e41722a881ce | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,985 | supabase-export-v2 | cfedb96cc2fbff60 | .. data:: ENABLE_USER_SITE
Flag showing the status of the user site-packages directory. ``True`` means
that it is enabled and was added to ``sys.path``. ``False`` means that it
was disabled by user request (with :option:`-s` or
:envvar:`PYTHONNOUSERSITE`). ``None`` means it was disabled for security
reasons (mismat... | trusted_official_docs | CPython Docs | .. data:: ENABLE_USER_SITE
Flag showing the status of the user site-packages directory. ``True`` means
that it is enabled and was added to ``sys.path``. ``False`` means that it
was disabled by user request (with :option:`-s` or
:envvar:`PYTHONNOUSERSITE`). ``None`` means it was disabled for security
reasons (mismat... | .. data:: ENABLE_USER_SITE
Flag showing the status of the user site-packages directory. ``True`` means
that it is enabled and was added to ``sys.path``. ``False`` means that it
was disabled by user request (with :option:`-s` or
:envvar:`PYTHONNOUSERSITE`). ``None`` means it was disabled for security
reasons (mismat... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9102ab99-ec5a-4fd7-b523-3369f0f714b8 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,939 | supabase-export-v2 | 5b68c3cadfb1af91 | one of the site-packages directories described above. Each file specifies entry points to be called during interpreter startup, using the ``pkg.mod:callable`` syntax understood by :func:`pkgutil.resolve_name`.
Each non-blank line that does not begin with ``#`` must contain an entry
point reference in the form ``pkg.mod... | trusted_official_docs | CPython Docs | one of the site-packages directories described above. Each file specifies entry points to be called during interpreter startup, using the ``pkg.mod:callable`` syntax understood by :func:`pkgutil.resolve_name`.
Each non-blank line that does not begin with ``#`` must contain an entry
point reference in the form ``pkg.mod... | one of the site-packages directories described above. Each file specifies entry points to be called during interpreter startup, using the ``pkg.mod:callable`` syntax understood by :func:`pkgutil.resolve_name`.
Each non-blank line that does not begin with ``#`` must contain an entry
point reference in the form ``pkg.mod... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9382e5cb-acfb-429d-90a5-0043dc3d2a81 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 16,012 | supabase-export-v2 | 20dfa99c835dcaaf | $ python -m site --user-site /home/user/.local/lib/python3.11/site-packages
If it is called without arguments, it will print the contents of
:data:`sys.path` on the standard output, followed by the value of
:data:`USER_BASE` and whether the directory exists, then the same thing for
:data:`USER_SITE`, and finally the va... | trusted_official_docs | CPython Docs | $ python -m site --user-site /home/user/.local/lib/python3.11/site-packages
If it is called without arguments, it will print the contents of
:data:`sys.path` on the standard output, followed by the value of
:data:`USER_BASE` and whether the directory exists, then the same thing for
:data:`USER_SITE`, and finally the va... | $ python -m site --user-site /home/user/.local/lib/python3.11/site-packages
If it is called without arguments, it will print the contents of
:data:`sys.path` on the standard output, followed by the value of
:data:`USER_BASE` and whether the directory exists, then the same thing for
:data:`USER_SITE`, and finally the va... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9989a20d-762f-4015-b5d2-4e2ff769ae69 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,975 | supabase-export-v2 | e1908caa7322d6de | .. module:: usercustomize
After this, an attempt is made to import a module named :mod:`!usercustomize`,
which can perform arbitrary user-specific customizations, if
:data:`~site.ENABLE_USER_SITE` is true. This file is intended to be created in the
user site-packages directory (see below), which is part of ``sys.path``... | trusted_official_docs | CPython Docs | .. module:: usercustomize
After this, an attempt is made to import a module named :mod:`!usercustomize`,
which can perform arbitrary user-specific customizations, if
:data:`~site.ENABLE_USER_SITE` is true. This file is intended to be created in the
user site-packages directory (see below), which is part of ``sys.path``... | .. module:: usercustomize
After this, an attempt is made to import a module named :mod:`!usercustomize`,
which can perform arbitrary user-specific customizations, if
:data:`~site.ENABLE_USER_SITE` is true. This file is intended to be created in the
user site-packages directory (see below), which is part of ``sys.path``... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9b2550f2-8a8b-4746-ab15-d5e75e8f6f73 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,995 | supabase-export-v2 | 6af08a87d1f8df72 | Add a directory to sys.path and parse the :file:`.pth` and :file:`.start` files found in that directory. Typically used in :mod:`sitecustomize` or :mod:`usercustomize` (see above).
The *known_paths* argument is an optional set of case-normalized paths
used to prevent duplicate :data:`sys.path` entries. When ``None`` (... | trusted_official_docs | CPython Docs | Add a directory to sys.path and parse the :file:`.pth` and :file:`.start` files found in that directory. Typically used in :mod:`sitecustomize` or :mod:`usercustomize` (see above).
The *known_paths* argument is an optional set of case-normalized paths
used to prevent duplicate :data:`sys.path` entries. When ``None`` (... | Add a directory to sys.path and parse the :file:`.pth` and :file:`.start` files found in that directory. Typically used in :mod:`sitecustomize` or :mod:`usercustomize` (see above).
The *known_paths* argument is an optional set of case-normalized paths
used to prevent duplicate :data:`sys.path` entries. When ``None`` (... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9b8bcf99-54e5-4f9e-b148-d8b798b36b65 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,919 | supabase-export-v2 | 9757543aca2d68be | .. _site-virtual-environments-configuration:
When running under a :ref:`virtual environment <sys-path-init-virtual-environments>`,
the ``pyvenv.cfg`` file in :data:`sys.prefix` is checked for site-specific
configurations. If the ``include-system-site-packages`` key exists and is set to
``true`` (case-insensitive), the ... | trusted_official_docs | CPython Docs | .. _site-virtual-environments-configuration:
When running under a :ref:`virtual environment <sys-path-init-virtual-environments>`,
the ``pyvenv.cfg`` file in :data:`sys.prefix` is checked for site-specific
configurations. If the ``include-system-site-packages`` key exists and is set to
``true`` (case-insensitive), the ... | .. _site-virtual-environments-configuration:
When running under a :ref:`virtual environment <sys-path-init-virtual-environments>`,
the ``pyvenv.cfg`` file in :data:`sys.prefix` is checked for site-specific
configurations. If the ``include-system-site-packages`` key exists and is set to
``true`` (case-insensitive), the ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9df38a88-f62a-447b-aec2-d82a91cd88c4 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,934 | supabase-export-v2 | 4c4978d916773e00 | in any encoding other than ``utf-8-sig`` is deprecated in Python 3.15, and support for decoding from the locale encoding will be removed in Python 3.20.
``import`` lines in :file:`{name}.pth` files are deprecated and will be
silently ignored in Python 3.18 and 3.19. In Python 3.20 a warning will be
produced for ``imp... | trusted_official_docs | CPython Docs | in any encoding other than ``utf-8-sig`` is deprecated in Python 3.15, and support for decoding from the locale encoding will be removed in Python 3.20.
``import`` lines in :file:`{name}.pth` files are deprecated and will be
silently ignored in Python 3.18 and 3.19. In Python 3.20 a warning will be
produced for ``imp... | in any encoding other than ``utf-8-sig`` is deprecated in Python 3.15, and support for decoding from the locale encoding will be removed in Python 3.20.
``import`` lines in :file:`{name}.pth` files are deprecated and will be
silently ignored in Python 3.18 and 3.19. In Python 3.20 a warning will be
produced for ``imp... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a864c292-8762-4e9b-b8d6-e97c5e3ed5fd | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,914 | supabase-export-v2 | c8d4bfea59c89a29 | sees if it refers to an existing directory, and if so, adds it to ``sys.path`` and also inspects the newly added path for configuration files.
.. versionchanged:: 3.5
Support for the "site-python" directory has been removed. | trusted_official_docs | CPython Docs | sees if it refers to an existing directory, and if so, adds it to ``sys.path`` and also inspects the newly added path for configuration files.
.. versionchanged:: 3.5
Support for the "site-python" directory has been removed. | sees if it refers to an existing directory, and if so, adds it to ``sys.path`` and also inspects the newly added path for configuration files.
.. versionchanged:: 3.5
Support for the "site-python" directory has been removed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b0c17a92-eb80-414c-bd7a-4e0daab1f6ab | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,953 | supabase-export-v2 | bbf934ba3e239ca9 | Startup file examples ---------------------
For example, suppose ``sys.prefix`` and ``sys.exec_prefix`` are set to
:file:`/usr/local`. The Python X.Y library is then installed in
:file:`/usr/local/lib/python{X.Y}`. Suppose this has
a subdirectory :file:`/usr/local/lib/python{X.Y}/site-packages` with three
sub-subdirect... | trusted_official_docs | CPython Docs | Startup file examples ---------------------
For example, suppose ``sys.prefix`` and ``sys.exec_prefix`` are set to
:file:`/usr/local`. The Python X.Y library is then installed in
:file:`/usr/local/lib/python{X.Y}`. Suppose this has
a subdirectory :file:`/usr/local/lib/python{X.Y}/site-packages` with three
sub-subdirect... | Startup file examples ---------------------
For example, suppose ``sys.prefix`` and ``sys.exec_prefix`` are set to
:file:`/usr/local`. The Python X.Y library is then installed in
:file:`/usr/local/lib/python{X.Y}`. Suppose this has
a subdirectory :file:`/usr/local/lib/python{X.Y}/site-packages` with three
sub-subdirect... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bbad54d1-53c5-4253-848a-dc9eb918b232 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,920 | supabase-export-v2 | 0705d4fefff85697 | searched for site-packages, otherwise they won't. If the system-level prefixes are not searched then the user site prefixes are also implicitly not searched for site-packages.
.. index::
single: # (hash); comment
pair: statement; import | trusted_official_docs | CPython Docs | searched for site-packages, otherwise they won't. If the system-level prefixes are not searched then the user site prefixes are also implicitly not searched for site-packages.
.. index::
single: # (hash); comment
pair: statement; import | searched for site-packages, otherwise they won't. If the system-level prefixes are not searched then the user site prefixes are also implicitly not searched for site-packages.
.. index::
single: # (hash); comment
pair: statement; import | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bbf98b3e-0e25-4d7f-83ca-a3caf9604990 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,929 | supabase-export-v2 | 16eddfc7cb0df1b0 | .. versionchanged:: next
:file:`.pth` file lines starting with ``import`` are deprecated. During
the deprecation period, such lines are still executed (except in the case
below), but a diagnostic message is emitted only when the :option:`-v` flag
is given. | trusted_official_docs | CPython Docs | .. versionchanged:: next
:file:`.pth` file lines starting with ``import`` are deprecated. During
the deprecation period, such lines are still executed (except in the case
below), but a diagnostic message is emitted only when the :option:`-v` flag
is given. | .. versionchanged:: next
:file:`.pth` file lines starting with ``import`` are deprecated. During
the deprecation period, such lines are still executed (except in the case
below), but a diagnostic message is emitted only when the :option:`-v` flag
is given. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c16ae218-30f8-4b4f-a12a-6b8f7b1876d0 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,942 | supabase-export-v2 | bb8c19d2e406bbce | from :file:`.pth` files, duplicate entry points are **not** de-duplicated --- if an entry point appears more than once, it will be called more than once.
If an exception occurs during resolution or invocation of an entry point,
a traceback is printed to :data:`sys.stderr` and processing continues with
the remaining ent... | trusted_official_docs | CPython Docs | from :file:`.pth` files, duplicate entry points are **not** de-duplicated --- if an entry point appears more than once, it will be called more than once.
If an exception occurs during resolution or invocation of an entry point,
a traceback is printed to :data:`sys.stderr` and processing continues with
the remaining ent... | from :file:`.pth` files, duplicate entry points are **not** de-duplicated --- if an entry point appears more than once, it will be called more than once.
If an exception occurs during resolution or invocation of an entry point,
a traceback is printed to :data:`sys.stderr` and processing continues with
the remaining ent... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c596c1ff-ee27-4815-880a-cac55097ae2f | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,965 | supabase-export-v2 | b49db04b333481d9 | If your package currently ships a :file:`{name}.pth` file, you can keep all ``sys.path`` extension lines unchanged. Only ``import`` lines need to be migrated.
To migrate, create a callable (taking zero arguments) within an importable
module in your package. Reference it as a ``pkg.mod:callable`` entry point
in a matchi... | trusted_official_docs | CPython Docs | If your package currently ships a :file:`{name}.pth` file, you can keep all ``sys.path`` extension lines unchanged. Only ``import`` lines need to be migrated.
To migrate, create a callable (taking zero arguments) within an importable
module in your package. Reference it as a ``pkg.mod:callable`` entry point
in a matchi... | If your package currently ships a :file:`{name}.pth` file, you can keep all ``sys.path`` extension lines unchanged. Only ``import`` lines need to be migrated.
To migrate, create a callable (taking zero arguments) within an importable
module in your package. Reference it as a ``pkg.mod:callable`` entry point
in a matchi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d1c161b6-3b56-4cb5-b7f2-b39ba0601c9a | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,911 | supabase-export-v2 | a6cdabef02965d3c | with no automatic modifications to the module search path or additions to the builtins. To explicitly trigger the usual site-specific additions, call the :func:`main` function.
.. versionchanged:: 3.3
Importing the module used to trigger paths manipulation even when using
:option:`-S`. | trusted_official_docs | CPython Docs | with no automatic modifications to the module search path or additions to the builtins. To explicitly trigger the usual site-specific additions, call the :func:`main` function.
.. versionchanged:: 3.3
Importing the module used to trigger paths manipulation even when using
:option:`-S`. | with no automatic modifications to the module search path or additions to the builtins. To explicitly trigger the usual site-specific additions, call the :func:`main` function.
.. versionchanged:: 3.3
Importing the module used to trigger paths manipulation even when using
:option:`-S`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d3ee6c69-baa6-4c9a-951b-2fade4f00100 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,931 | supabase-export-v2 | 794e74b05cdd7a7e | ``import`` lines in :file:`{name}.pth` are silently ignored when a :ref:`matching <site-start-files>` :file:`{name}.start` file exists.
Errors on individual lines no longer abort processing of the rest of the
file. Each error is reported and the remaining lines continue to be
processed. | trusted_official_docs | CPython Docs | ``import`` lines in :file:`{name}.pth` are silently ignored when a :ref:`matching <site-start-files>` :file:`{name}.start` file exists.
Errors on individual lines no longer abort processing of the rest of the
file. Each error is reported and the remaining lines continue to be
processed. | ``import`` lines in :file:`{name}.pth` are silently ignored when a :ref:`matching <site-start-files>` :file:`{name}.start` file exists.
Errors on individual lines no longer abort processing of the rest of the
file. Each error is reported and the remaining lines continue to be
processed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d8490106-2fdb-4abe-b215-6fae65dcde0d | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,987 | supabase-export-v2 | 4b13d1e7bb770940 | .. data:: USER_SITE
Path to the user site-packages for the running Python. Can be ``None`` if
:func:`getusersitepackages` hasn't been called yet. Default value is
:file:`~/.local/lib/python{X.Y}[t]/site-packages` for UNIX and non-framework
macOS builds, :file:`~/Library/Python/{X.Y}/lib/python/site-packages` for mac... | trusted_official_docs | CPython Docs | .. data:: USER_SITE
Path to the user site-packages for the running Python. Can be ``None`` if
:func:`getusersitepackages` hasn't been called yet. Default value is
:file:`~/.local/lib/python{X.Y}[t]/site-packages` for UNIX and non-framework
macOS builds, :file:`~/Library/Python/{X.Y}/lib/python/site-packages` for mac... | .. data:: USER_SITE
Path to the user site-packages for the running Python. Can be ``None`` if
:func:`getusersitepackages` hasn't been called yet. Default value is
:file:`~/.local/lib/python{X.Y}[t]/site-packages` for UNIX and non-framework
macOS builds, :file:`~/Library/Python/{X.Y}/lib/python/site-packages` for mac... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e45d1c9c-9089-421a-879d-9c1ee3baf7b4 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,979 | supabase-export-v2 | 4f53a0bb2a3c8c9c | Readline configuration ----------------------
On systems that support :mod:`readline`, this module will also import and
configure the :mod:`rlcompleter` module, if Python is started in
:ref:`interactive mode <tut-interactive>` and without the :option:`-S` option. The default behavior is to enable tab completion and to ... | trusted_official_docs | CPython Docs | Readline configuration ----------------------
On systems that support :mod:`readline`, this module will also import and
configure the :mod:`rlcompleter` module, if Python is started in
:ref:`interactive mode <tut-interactive>` and without the :option:`-S` option. The default behavior is to enable tab completion and to ... | Readline configuration ----------------------
On systems that support :mod:`readline`, this module will also import and
configure the :mod:`rlcompleter` module, if Python is started in
:ref:`interactive mode <tut-interactive>` and without the :option:`-S` option. The default behavior is to enable tab completion and to ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e7a7032a-d42f-47d2-9a6b-a8db3fd658ba | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,910 | supabase-export-v2 | d46be6d22e72ac2d | .. index:: triple: module; search; path
Importing this module normally appends site-specific paths to the module search path
and adds :ref:`callables <site-consts>`, including :func:`help` to the built-in
namespace. However, Python startup option :option:`-S` blocks this, and this module
can be safely imported with no ... | trusted_official_docs | CPython Docs | .. index:: triple: module; search; path
Importing this module normally appends site-specific paths to the module search path
and adds :ref:`callables <site-consts>`, including :func:`help` to the built-in
namespace. However, Python startup option :option:`-S` blocks this, and this module
can be safely imported with no ... | .. index:: triple: module; search; path
Importing this module normally appends site-specific paths to the module search path
and adds :ref:`callables <site-consts>`, including :func:`help` to the built-in
namespace. However, Python startup option :option:`-S` blocks this, and this module
can be safely imported with no ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e85d0299-27b9-4863-a805-a2a5eff327f8 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,969 | supabase-export-v2 | 09d84b4668cfe114 | import pkg.mod; pkg.mod.callable()
Older Pythons will execute these ``import`` lines, while newer Pythons will
ignore them in favor of the :file:`{name}.start` file. After the straddling
period, remove all ``import`` lines from your :file:`.pth` files. | trusted_official_docs | CPython Docs | import pkg.mod; pkg.mod.callable()
Older Pythons will execute these ``import`` lines, while newer Pythons will
ignore them in favor of the :file:`{name}.start` file. After the straddling
period, remove all ``import`` lines from your :file:`.pth` files. | import pkg.mod; pkg.mod.callable()
Older Pythons will execute these ``import`` lines, while newer Pythons will
ignore them in favor of the :file:`{name}.start` file. After the straddling
period, remove all ``import`` lines from your :file:`.pth` files. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fdb584cc-6961-4989-a74e-a0a633a757f5 | CPython Docs | file://datasets/cpython/Doc/library/site.rst | unknown | 6142536b-ffd9-4be4-a642-4911a1c02537 | 15,989 | supabase-export-v2 | 9ee05e90105c95cf | .. data:: USER_BASE
Path to the base directory for the user site-packages. Can be ``None`` if
:func:`getuserbase` hasn't been called yet. Default value is
:file:`~/.local` for UNIX and macOS non-framework builds,
:file:`~/Library/Python/{X.Y}` for macOS framework builds, and
:file:`{%APPDATA%}\\Python` for Windows.... | trusted_official_docs | CPython Docs | .. data:: USER_BASE
Path to the base directory for the user site-packages. Can be ``None`` if
:func:`getuserbase` hasn't been called yet. Default value is
:file:`~/.local` for UNIX and macOS non-framework builds,
:file:`~/Library/Python/{X.Y}` for macOS framework builds, and
:file:`{%APPDATA%}\\Python` for Windows.... | .. data:: USER_BASE
Path to the base directory for the user site-packages. Can be ``None`` if
:func:`getuserbase` hasn't been called yet. Default value is
:file:`~/.local` for UNIX and macOS non-framework builds,
:file:`~/Library/Python/{X.Y}` for macOS framework builds, and
:file:`{%APPDATA%}\\Python` for Windows.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
00ef14f6-15d9-4a89-a6fe-0896ac7505de | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,135 | supabase-export-v2 | 77857e35c2996523 | The tab_id present in several methods of :class:`ttk.Notebook` may take any of the following forms:
* An integer between zero and the number of tabs
* The name of a child window
* A positional specification of the form "@x,y", which identifies the tab
* The literal string "current", which identifies the currently selec... | trusted_official_docs | CPython Docs | The tab_id present in several methods of :class:`ttk.Notebook` may take any of the following forms:
* An integer between zero and the number of tabs
* The name of a child window
* A positional specification of the form "@x,y", which identifies the tab
* The literal string "current", which identifies the currently selec... | The tab_id present in several methods of :class:`ttk.Notebook` may take any of the following forms:
* An integer between zero and the number of tabs
* The name of a child window
* A positional specification of the form "@x,y", which identifies the tab
* The literal string "current", which identifies the currently selec... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0160881d-ce00-4008-9753-61667fe06f21 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,285 | supabase-export-v2 | 7a226d56d4493530 | Query or modify the options for the specified *item*.
If no options are given, a dict with options/values for the item is
returned. If *option* is specified then the value for that option is returned. Otherwise, sets the options to the corresponding values as given by *kw*. | trusted_official_docs | CPython Docs | Query or modify the options for the specified *item*.
If no options are given, a dict with options/values for the item is
returned. If *option* is specified then the value for that option is returned. Otherwise, sets the options to the corresponding values as given by *kw*. | Query or modify the options for the specified *item*.
If no options are given, a dict with options/values for the item is
returned. If *option* is specified then the value for that option is returned. Otherwise, sets the options to the corresponding values as given by *kw*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
050252fe-7dd2-44a0-b2a0-ca56e8e2029a | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,094 | supabase-export-v2 | bf5328d31fc8efa9 | dropdown list. In the "normal" state, the text field is| | | directly editable. In the "disabled" state, no | | | interaction is possible.
|
+-----------------+--------------------------------------------------------+
| textvariable | Specifies a name whose value is linked to the widget |
| | value. Whenever the value ... | trusted_official_docs | CPython Docs | dropdown list. In the "normal" state, the text field is| | | directly editable. In the "disabled" state, no | | | interaction is possible.
|
+-----------------+--------------------------------------------------------+
| textvariable | Specifies a name whose value is linked to the widget |
| | value. Whenever the value ... | dropdown list. In the "normal" state, the text field is| | | directly editable. In the "disabled" state, no | | | interaction is possible.
|
+-----------------+--------------------------------------------------------+
| textvariable | Specifies a name whose value is linked to the widget |
| | value. Whenever the value ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0c2c7009-deab-4abb-9e93-c72a6eecaead | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,200 | supabase-export-v2 | 27f1f11d50c8f725 | Treeview --------
The :class:`ttk.Treeview` widget displays a hierarchical collection of items. Each item has a textual label, an optional image, and an optional list of data
values. The data values are displayed in successive columns after the tree
label. | trusted_official_docs | CPython Docs | Treeview --------
The :class:`ttk.Treeview` widget displays a hierarchical collection of items. Each item has a textual label, an optional image, and an optional list of data
values. The data values are displayed in successive columns after the tree
label. | Treeview --------
The :class:`ttk.Treeview` widget displays a hierarchical collection of items. Each item has a textual label, an optional image, and an optional list of data
values. The data values are displayed in successive columns after the tree
label. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
104d61ed-576b-4a7d-8a68-9b7fa47f0d07 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,073 | supabase-export-v2 | 6761435e1155a995 | .. tabularcolumns:: |l|L|
+------------+-------------------------------------------------------------+
| Flag | Description |
+============+=============================================================+
| active | The mouse cursor is over the widget and pressing a mouse |
| | button will cause some action to occur |
+-... | trusted_official_docs | CPython Docs | .. tabularcolumns:: |l|L|
+------------+-------------------------------------------------------------+
| Flag | Description |
+============+=============================================================+
| active | The mouse cursor is over the widget and pressing a mouse |
| | button will cause some action to occur |
+-... | .. tabularcolumns:: |l|L|
+------------+-------------------------------------------------------------+
| Flag | Description |
+============+=============================================================+
| active | The mouse cursor is over the widget and pressing a mouse |
| | button will cause some action to occur |
+-... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1451d36d-d38d-444e-80ac-e9f873a2efa8 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,398 | supabase-export-v2 | c848ec6be17b7424 | 'map', 'layout' and 'element create' and they are expected to have the same format as specified by the methods :meth:`Style.configure`, :meth:`Style.map`, :meth:`Style.layout` and :meth:`Style.element_create` respectively.
As an example, let's change the Combobox for the default theme a bit:: | trusted_official_docs | CPython Docs | 'map', 'layout' and 'element create' and they are expected to have the same format as specified by the methods :meth:`Style.configure`, :meth:`Style.map`, :meth:`Style.layout` and :meth:`Style.element_create` respectively.
As an example, let's change the Combobox for the default theme a bit:: | 'map', 'layout' and 'element create' and they are expected to have the same format as specified by the methods :meth:`Style.configure`, :meth:`Style.map`, :meth:`Style.layout` and :meth:`Style.element_create` respectively.
As an example, let's change the Combobox for the default theme a bit:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
17bbc8e5-f03c-4cde-8f72-fc37b72d86f3 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,084 | supabase-export-v2 | 345914e0043bc004 | .. method:: state(statespec=None)
Modify or inquire widget state. If *statespec* is specified, sets the
widget state according to it and return a new *statespec* indicating
which flags were changed. If *statespec* is not specified, returns
the currently enabled state flags. | trusted_official_docs | CPython Docs | .. method:: state(statespec=None)
Modify or inquire widget state. If *statespec* is specified, sets the
widget state according to it and return a new *statespec* indicating
which flags were changed. If *statespec* is not specified, returns
the currently enabled state flags. | .. method:: state(statespec=None)
Modify or inquire widget state. If *statespec* is specified, sets the
widget state according to it and return a new *statespec* indicating
which flags were changed. If *statespec* is not specified, returns
the currently enabled state flags. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
18a988cd-b282-461c-90cb-0e6da4a6e4a8 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,355 | supabase-export-v2 | 018064a7a8698d0c | Returns the value specified for *option* in *style*.
If *state* is specified, it is expected to be a sequence of one or more
states. If the *default* argument is set, it is used as a fallback value
in case no specification for option is found. | trusted_official_docs | CPython Docs | Returns the value specified for *option* in *style*.
If *state* is specified, it is expected to be a sequence of one or more
states. If the *default* argument is set, it is used as a fallback value
in case no specification for option is found. | Returns the value specified for *option* in *style*.
If *state* is specified, it is expected to be a sequence of one or more
states. If the *default* argument is set, it is used as a fallback value
in case no specification for option is found. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1d28c5ae-7e8d-4328-9936-4d19d75655d4 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,157 | supabase-export-v2 | eff81af3a621be91 | Selects the specified *tab_id*.
The associated child window will be displayed, and the
previously selected window (if different) is unmapped. If *tab_id* is
omitted, returns the widget name of the currently selected pane. | trusted_official_docs | CPython Docs | Selects the specified *tab_id*.
The associated child window will be displayed, and the
previously selected window (if different) is unmapped. If *tab_id* is
omitted, returns the widget name of the currently selected pane. | Selects the specified *tab_id*.
The associated child window will be displayed, and the
previously selected window (if different) is unmapped. If *tab_id* is
omitted, returns the widget name of the currently selected pane. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1e01d11c-3040-4d1b-90f3-03efdcc2dc79 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,110 | supabase-export-v2 | 9d3b6740d4556f2f | .. tabularcolumns:: |l|L|
+----------------------+------------------------------------------------------+
| Option | Description |
+======================+======================================================+
| from | Float value. If set, this is the minimum value to |
| | which the decrement button will decrement. M... | trusted_official_docs | CPython Docs | .. tabularcolumns:: |l|L|
+----------------------+------------------------------------------------------+
| Option | Description |
+======================+======================================================+
| from | Float value. If set, this is the minimum value to |
| | which the decrement button will decrement. M... | .. tabularcolumns:: |l|L|
+----------------------+------------------------------------------------------+
| Option | Description |
+======================+======================================================+
| from | Float value. If set, this is the minimum value to |
| | which the decrement button will decrement. M... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2013b16e-d0e6-4b06-bb17-18912a7b37fe | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,146 | supabase-export-v2 | 5909982b56661ab9 | Hides the tab specified by *tab_id*.
The tab will not be displayed, but the associated window remains
managed by the notebook and its configuration remembered. Hidden tabs
may be restored with the :meth:`add` command. | trusted_official_docs | CPython Docs | Hides the tab specified by *tab_id*.
The tab will not be displayed, but the associated window remains
managed by the notebook and its configuration remembered. Hidden tabs
may be restored with the :meth:`add` command. | Hides the tab specified by *tab_id*.
The tab will not be displayed, but the associated window remains
managed by the notebook and its configuration remembered. Hidden tabs
may be restored with the :meth:`add` command. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
215c5154-fdf4-4155-9d6a-8831566a611e | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,352 | supabase-export-v2 | 098633cdec446fdb | root.mainloop()
Note that the order of the (states, value) sequences for an option does
matter, if the order is changed to ``[('active', 'blue'), ('pressed',
'red')]`` in the foreground option, for example, the result would be a
blue foreground when the widget were in active or pressed states. | trusted_official_docs | CPython Docs | root.mainloop()
Note that the order of the (states, value) sequences for an option does
matter, if the order is changed to ``[('active', 'blue'), ('pressed',
'red')]`` in the foreground option, for example, the result would be a
blue foreground when the widget were in active or pressed states. | root.mainloop()
Note that the order of the (states, value) sequences for an option does
matter, if the order is changed to ``[('active', 'blue'), ('pressed',
'red')]`` in the foreground option, for example, the result would be a
blue foreground when the widget were in active or pressed states. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
22b5d4c2-039b-4097-b40c-810fc846b224 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,317 | supabase-export-v2 | 88fa784428696ab7 | arguments, returns the current value of the specified *column*. With three arguments, sets the value of given *column* in given *item* to the specified *value*.
.. method:: tag_bind(tagname, sequence=None, callback=None) | trusted_official_docs | CPython Docs | arguments, returns the current value of the specified *column*. With three arguments, sets the value of given *column* in given *item* to the specified *value*.
.. method:: tag_bind(tagname, sequence=None, callback=None) | arguments, returns the current value of the specified *column*. With three arguments, sets the value of given *column* in given *item* to the specified *value*.
.. method:: tag_bind(tagname, sequence=None, callback=None) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
23433984-8d62-4f05-86b7-e269544bceee | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,064 | supabase-export-v2 | 2ebea607e172f4fe | index (0-based) of a character to | | | underline in the text string. The underline character is | | | used for mnemonic activation.
|
+--------------+-----------------------------------------------------------+
| image | Specifies an image to display. This is a list of 1 or more|
| | elements. The first element is the... | trusted_official_docs | CPython Docs | index (0-based) of a character to | | | underline in the text string. The underline character is | | | used for mnemonic activation.
|
+--------------+-----------------------------------------------------------+
| image | Specifies an image to display. This is a list of 1 or more|
| | elements. The first element is the... | index (0-based) of a character to | | | underline in the text string. The underline character is | | | used for mnemonic activation.
|
+--------------+-----------------------------------------------------------+
| image | Specifies an image to display. This is a list of 1 or more|
| | elements. The first element is the... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2544826f-e9f1-4d9e-99b9-76f5032ba13f | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,264 | supabase-export-v2 | d4498787d95a7129 | heading text should be aligned. One of the standard Tk anchor values. *command*: callback A callback to be invoked when the heading label is pressed.
To configure the tree column heading, call this with column = "#0". | trusted_official_docs | CPython Docs | heading text should be aligned. One of the standard Tk anchor values. *command*: callback A callback to be invoked when the heading label is pressed.
To configure the tree column heading, call this with column = "#0". | heading text should be aligned. One of the standard Tk anchor values. *command*: callback A callback to be invoked when the heading label is pressed.
To configure the tree column heading, call this with column = "#0". | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
260cfa1b-d30d-404f-9f77-5baba79e8b11 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,093 | supabase-export-v2 | 7cbfacf7c407f139 | the widget. | | | One of "left", "center", or "right". | +-----------------+--------------------------------------------------------+ | height | Specifies the height of the pop-down listbox, in rows.
|
+-----------------+--------------------------------------------------------+
| postcommand | A script (possibly regist... | trusted_official_docs | CPython Docs | the widget. | | | One of "left", "center", or "right". | +-----------------+--------------------------------------------------------+ | height | Specifies the height of the pop-down listbox, in rows.
|
+-----------------+--------------------------------------------------------+
| postcommand | A script (possibly regist... | the widget. | | | One of "left", "center", or "right". | +-----------------+--------------------------------------------------------+ | height | Specifies the height of the pop-down listbox, in rows.
|
+-----------------+--------------------------------------------------------+
| postcommand | A script (possibly regist... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
26c347f3-9824-4238-992d-b3446996f949 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,381 | supabase-export-v2 | 61afaaa60b565de5 | documentation followed by an optional sequence of tuples of ttk states and the corresponding Visual Styles API state value. *kw* may have the following options:
padding=padding
Specify the element's interior padding. *padding* is a list of up to four integers specifying the left,
top, right and bottom padding quantit... | trusted_official_docs | CPython Docs | documentation followed by an optional sequence of tuples of ttk states and the corresponding Visual Styles API state value. *kw* may have the following options:
padding=padding
Specify the element's interior padding. *padding* is a list of up to four integers specifying the left,
top, right and bottom padding quantit... | documentation followed by an optional sequence of tuples of ttk states and the corresponding Visual Styles API state value. *kw* may have the following options:
padding=padding
Specify the element's interior padding. *padding* is a list of up to four integers specifying the left,
top, right and bottom padding quantit... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
273a76bf-bd88-4bd9-87c4-3325ccb0ca7a | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,065 | supabase-export-v2 | 16f3f41614d76786 | compound | Specifies how to display the image relative to the text, | | | in the case both text and images options are present.
|
| | Valid values are: |
| | |
| | * text: display text only |
| | * image: display image only |
| | * top, bottom, left, right: display image above, below, |
| | left of, or right of the tex... | trusted_official_docs | CPython Docs | compound | Specifies how to display the image relative to the text, | | | in the case both text and images options are present.
|
| | Valid values are: |
| | |
| | * text: display text only |
| | * image: display image only |
| | * top, bottom, left, right: display image above, below, |
| | left of, or right of the tex... | compound | Specifies how to display the image relative to the text, | | | in the case both text and images options are present.
|
| | Valid values are: |
| | |
| | * text: display text only |
| | * image: display image only |
| | * top, bottom, left, right: display image above, below, |
| | left of, or right of the tex... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
28d75039-1860-49bd-97db-5f6deea44770 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,082 | supabase-export-v2 | fba40b56f6ed58f3 | .. method:: instate(statespec, callback=None, *args, **kw)
Test the widget's state. If a callback is not specified, returns ``True``
if the widget state matches *statespec* and ``False`` otherwise. If callback
is specified then it is called with args if widget state matches
*statespec*. | trusted_official_docs | CPython Docs | .. method:: instate(statespec, callback=None, *args, **kw)
Test the widget's state. If a callback is not specified, returns ``True``
if the widget state matches *statespec* and ``False`` otherwise. If callback
is specified then it is called with args if widget state matches
*statespec*. | .. method:: instate(statespec, callback=None, *args, **kw)
Test the widget's state. If a callback is not specified, returns ``True``
if the widget state matches *statespec* and ``False`` otherwise. If callback
is specified then it is called with args if widget state matches
*statespec*. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2acff8c3-d0ff-4690-b7e0-fa1cf9ab2352 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,371 | supabase-export-v2 | 257d538da52f540d | border=padding padding is a list of up to four integers, specifying the left, top, right, and bottom borders, respectively.
height=height
Specifies a minimum height for the element. If less than zero, the
base image's height is used as a default. | trusted_official_docs | CPython Docs | border=padding padding is a list of up to four integers, specifying the left, top, right, and bottom borders, respectively.
height=height
Specifies a minimum height for the element. If less than zero, the
base image's height is used as a default. | border=padding padding is a list of up to four integers, specifying the left, top, right, and bottom borders, respectively.
height=height
Specifies a minimum height for the element. If less than zero, the
base image's height is used as a default. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2f3a175a-c9f0-4409-bb40-b637a84fb582 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,158 | supabase-export-v2 | a212acb2fc7600f6 | will be displayed, and the previously selected window (if different) is unmapped. If *tab_id* is omitted, returns the widget name of the currently selected pane.
.. method:: tab(tab_id, option=None, **kw) | trusted_official_docs | CPython Docs | will be displayed, and the previously selected window (if different) is unmapped. If *tab_id* is omitted, returns the widget name of the currently selected pane.
.. method:: tab(tab_id, option=None, **kw) | will be displayed, and the previously selected window (if different) is unmapped. If *tab_id* is omitted, returns the widget name of the currently selected pane.
.. method:: tab(tab_id, option=None, **kw) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
303ad04b-cb5f-44de-b52a-7fee2b6addf5 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,208 | supabase-export-v2 | 3068e2a1435883e8 | .. tabularcolumns:: |l|p{0.7\linewidth}|
+----------------+--------------------------------------------------------+
| Option | Description |
+================+========================================================+
| columns | A list of column identifiers, specifying the number of |
| | columns and their names. |
+-... | trusted_official_docs | CPython Docs | .. tabularcolumns:: |l|p{0.7\linewidth}|
+----------------+--------------------------------------------------------+
| Option | Description |
+================+========================================================+
| columns | A list of column identifiers, specifying the number of |
| | columns and their names. |
+-... | .. tabularcolumns:: |l|p{0.7\linewidth}|
+----------------+--------------------------------------------------------+
| Option | Description |
+================+========================================================+
| columns | A list of column identifiers, specifying the number of |
| | columns and their names. |
+-... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
33d5ab11-10a8-44c5-acef-02b8fa34cf24 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,202 | supabase-export-v2 | 7df9378a24ade273 | tree widget can also display column headings. Columns may be accessed by number or symbolic names listed in the widget option columns. See `Column Identifiers`_.
Each item is identified by a unique name. The widget will generate item IDs
if they are not supplied by the caller. There is a distinguished root item,
named ... | trusted_official_docs | CPython Docs | tree widget can also display column headings. Columns may be accessed by number or symbolic names listed in the widget option columns. See `Column Identifiers`_.
Each item is identified by a unique name. The widget will generate item IDs
if they are not supplied by the caller. There is a distinguished root item,
named ... | tree widget can also display column headings. Columns may be accessed by number or symbolic names listed in the widget option columns. See `Column Identifiers`_.
Each item is identified by a unique name. The widget will generate item IDs
if they are not supplied by the caller. There is a distinguished root item,
named ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
36185cf0-4878-4ee9-9c07-8648625d7a81 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,410 | supabase-export-v2 | 22ff7976f42c0147 | Specifies which side of the cavity to place the element; one of top, right, bottom or left. If omitted, the element occupies the entire cavity.
*sticky*: nswe
Specifies where the element is placed inside its allocated parcel. | trusted_official_docs | CPython Docs | Specifies which side of the cavity to place the element; one of top, right, bottom or left. If omitted, the element occupies the entire cavity.
*sticky*: nswe
Specifies where the element is placed inside its allocated parcel. | Specifies which side of the cavity to place the element; one of top, right, bottom or left. If omitted, the element occupies the entire cavity.
*sticky*: nswe
Specifies where the element is placed inside its allocated parcel. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
379c7c3a-f257-40a2-86d4-9b23fe3bf0b6 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,106 | supabase-export-v2 | 3e8eefb426754366 | :class:`ttk.Entry` enhanced with increment and decrement arrows. It can be used for numbers or lists of string values. This widget is a subclass of :class:`Entry`.
Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`,
:meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate`
and :meth... | trusted_official_docs | CPython Docs | :class:`ttk.Entry` enhanced with increment and decrement arrows. It can be used for numbers or lists of string values. This widget is a subclass of :class:`Entry`.
Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`,
:meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate`
and :meth... | :class:`ttk.Entry` enhanced with increment and decrement arrows. It can be used for numbers or lists of string values. This widget is a subclass of :class:`Entry`.
Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`,
:meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate`
and :meth... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
38665d7f-066f-4e43-bc99-2e0c11a7822f | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,382 | supabase-export-v2 | 86cff0bfeb89dd8a | vertical padding; a single number specifies the same padding all the way around the widget. This option may not be mixed with any other options.
margins=padding
Specifies the elements exterior padding. *padding* is a list of up to four integers specifying the left, top,
right and bottom padding quantities respectivel... | trusted_official_docs | CPython Docs | vertical padding; a single number specifies the same padding all the way around the widget. This option may not be mixed with any other options.
margins=padding
Specifies the elements exterior padding. *padding* is a list of up to four integers specifying the left, top,
right and bottom padding quantities respectivel... | vertical padding; a single number specifies the same padding all the way around the widget. This option may not be mixed with any other options.
margins=padding
Specifies the elements exterior padding. *padding* is a list of up to four integers specifying the left, top,
right and bottom padding quantities respectivel... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
39950aaa-2270-46c2-bf42-a041230568eb | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,153 | supabase-export-v2 | 20c886c28db9ab88 | Inserts a pane at the specified position.
*pos* is either the string "end", an integer index, or the name of a
managed child. If *child* is already managed by the notebook, moves it to
the specified position. | trusted_official_docs | CPython Docs | Inserts a pane at the specified position.
*pos* is either the string "end", an integer index, or the name of a
managed child. If *child* is already managed by the notebook, moves it to
the specified position. | Inserts a pane at the specified position.
*pos* is either the string "end", an integer index, or the name of a
managed child. If *child* is already managed by the notebook, moves it to
the specified position. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
39a9fe68-0d17-4b6a-a0cc-5653dd006226 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,373 | supabase-export-v2 | dcc23285c239873a | padding=padding Specifies the element's interior padding. Defaults to border's value if not specified.
sticky=spec
Specifies how the image is placed within the final parcel. spec
contains zero or more characters "n", "s", "w", or "e". | trusted_official_docs | CPython Docs | padding=padding Specifies the element's interior padding. Defaults to border's value if not specified.
sticky=spec
Specifies how the image is placed within the final parcel. spec
contains zero or more characters "n", "s", "w", or "e". | padding=padding Specifies the element's interior padding. Defaults to border's value if not specified.
sticky=spec
Specifies how the image is placed within the final parcel. spec
contains zero or more characters "n", "s", "w", or "e". | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3b91da74-8d2e-4f92-8c8f-992e3e59ca29 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,299 | supabase-export-v2 | 25ec0e1f7e313622 | Ensure that *item* is visible.
Sets all of *item*'s ancestors open option to ``True``, and scrolls the
widget if necessary so that *item* is within the visible portion of
the tree. | trusted_official_docs | CPython Docs | Ensure that *item* is visible.
Sets all of *item*'s ancestors open option to ``True``, and scrolls the
widget if necessary so that *item* is within the visible portion of
the tree. | Ensure that *item* is visible.
Sets all of *item*'s ancestors open option to ``True``, and scrolls the
widget if necessary so that *item* is within the visible portion of
the tree. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3c15d70f-0bce-44b3-b439-c6e31d24264a | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,198 | supabase-export-v2 | 7541168c2705963f | Bugs ^^^^
* If the containing toplevel's position was specified relative to the right
or bottom of the screen (e.g. ....), the :class:`Sizegrip` widget will
not resize the window. * This widget supports only "southeast" resizing. | trusted_official_docs | CPython Docs | Bugs ^^^^
* If the containing toplevel's position was specified relative to the right
or bottom of the screen (e.g. ....), the :class:`Sizegrip` widget will
not resize the window. * This widget supports only "southeast" resizing. | Bugs ^^^^
* If the containing toplevel's position was specified relative to the right
or bottom of the screen (e.g. ....), the :class:`Sizegrip` widget will
not resize the window. * This widget supports only "southeast" resizing. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3c23a102-be5d-428e-9449-e3c6845a20f7 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,387 | supabase-export-v2 | 7ecdb395532b7326 | ('pressed', '!selected', 3), ('active', '!selected', 2), ('pressed', 'selected', 6), ('active', 'selected', 5), ('selected', 4), ('', 1)]) style.layout('Explorer.Pin', [('Explorer.Pin.pin', {'sticky': 'news'})]) pin = ttk.Checkbutton(style='Explorer.Pin') pin.pack(expand=True, fill='both')
.. versionchanged:: 3.13
Add... | trusted_official_docs | CPython Docs | ('pressed', '!selected', 3), ('active', '!selected', 2), ('pressed', 'selected', 6), ('active', 'selected', 5), ('selected', 4), ('', 1)]) style.layout('Explorer.Pin', [('Explorer.Pin.pin', {'sticky': 'news'})]) pin = ttk.Checkbutton(style='Explorer.Pin') pin.pack(expand=True, fill='both')
.. versionchanged:: 3.13
Add... | ('pressed', '!selected', 3), ('active', '!selected', 2), ('pressed', 'selected', 6), ('active', 'selected', 5), ('selected', 4), ('', 1)]) style.layout('Explorer.Pin', [('Explorer.Pin.pin', {'sticky': 'news'})]) pin = ttk.Checkbutton(style='Explorer.Pin') pin.pack(expand=True, fill='both')
.. versionchanged:: 3.13
Add... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3c64e791-06d0-4683-a74c-82a560fc90f5 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,059 | supabase-export-v2 | 3eec2a3af05d33f2 | | :meth:`Scrollbar.set` of some scrollbar. This will cause| | | the scrollbar to be updated whenever the view in the | | | window changes.
|
+----------------+---------------------------------------------------------+
| yscrollcommand | Used to communicate with vertical scrollbars. |
| | For some more information, see ... | trusted_official_docs | CPython Docs | | :meth:`Scrollbar.set` of some scrollbar. This will cause| | | the scrollbar to be updated whenever the view in the | | | window changes.
|
+----------------+---------------------------------------------------------+
| yscrollcommand | Used to communicate with vertical scrollbars. |
| | For some more information, see ... | | :meth:`Scrollbar.set` of some scrollbar. This will cause| | | the scrollbar to be updated whenever the view in the | | | window changes.
|
+----------------+---------------------------------------------------------+
| yscrollcommand | Used to communicate with vertical scrollbars. |
| | For some more information, see ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3d704412-7073-4427-9351-88d767a4b25e | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,069 | supabase-export-v2 | 74d4f28f65532fe8 | .. tabularcolumns:: |l|L|
+--------+----------------------------------------------------------------+
| Option | Description |
+========+================================================================+
| state | May be set to "normal" or "disabled" to control the "disabled" |
| | state bit. This is a write-only option... | trusted_official_docs | CPython Docs | .. tabularcolumns:: |l|L|
+--------+----------------------------------------------------------------+
| Option | Description |
+========+================================================================+
| state | May be set to "normal" or "disabled" to control the "disabled" |
| | state bit. This is a write-only option... | .. tabularcolumns:: |l|L|
+--------+----------------------------------------------------------------+
| Option | Description |
+========+================================================================+
| state | May be set to "normal" or "disabled" to control the "disabled" |
| | state bit. This is a write-only option... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3dc127b3-1477-44bb-b3c5-8adbfb04cf11 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,231 | supabase-export-v2 | 4c8be6ac1e90efc1 | item to | | | open=True. | +--------------------+--------------------------------------------------+ | <<TreeviewClose>> | Generated just after setting the focus item to | | | open=False. | +--------------------+--------------------------------------------------+
The :meth:`Treeview.focus` and :meth:`Treeview.selection... | trusted_official_docs | CPython Docs | item to | | | open=True. | +--------------------+--------------------------------------------------+ | <<TreeviewClose>> | Generated just after setting the focus item to | | | open=False. | +--------------------+--------------------------------------------------+
The :meth:`Treeview.focus` and :meth:`Treeview.selection... | item to | | | open=True. | +--------------------+--------------------------------------------------+ | <<TreeviewClose>> | Generated just after setting the focus item to | | | open=False. | +--------------------+--------------------------------------------------+
The :meth:`Treeview.focus` and :meth:`Treeview.selection... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
417c21ca-4c06-4f46-ba80-91925377af23 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,074 | supabase-export-v2 | ed47ae02ce1ff58e | and | | | radiobuttons | +------------+-------------------------------------------------------------+ | background | Windows and Mac have a notion of an "active" or foreground | | | window.
The *background* state is set for widgets in a |
| | background window, and cleared for those in the foreground |
| | window |
+--... | trusted_official_docs | CPython Docs | and | | | radiobuttons | +------------+-------------------------------------------------------------+ | background | Windows and Mac have a notion of an "active" or foreground | | | window.
The *background* state is set for widgets in a |
| | background window, and cleared for those in the foreground |
| | window |
+--... | and | | | radiobuttons | +------------+-------------------------------------------------------------+ | background | Windows and Mac have a notion of an "active" or foreground | | | window.
The *background* state is set for widgets in a |
| | background window, and cleared for those in the foreground |
| | window |
+--... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
434259a3-582f-4c7d-83e6-86f545b6b7b4 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,397 | supabase-export-v2 | 11c3f9658851b894 | Temporarily sets the current theme to *themename*, apply specified *settings* and then restore the previous theme.
Each key in *settings* is a style and each value may contain the keys
'configure', 'map', 'layout' and 'element create' and they are expected
to have the same format as specified by the methods
:meth:`S... | trusted_official_docs | CPython Docs | Temporarily sets the current theme to *themename*, apply specified *settings* and then restore the previous theme.
Each key in *settings* is a style and each value may contain the keys
'configure', 'map', 'layout' and 'element create' and they are expected
to have the same format as specified by the methods
:meth:`S... | Temporarily sets the current theme to *themename*, apply specified *settings* and then restore the previous theme.
Each key in *settings* is a style and each value may contain the keys
'configure', 'map', 'layout' and 'element create' and they are expected
to have the same format as specified by the methods
:meth:`S... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
454c2572-3e32-4927-81f1-9990f6e80b76 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,058 | supabase-export-v2 | 719658a27e595f7f | .. tabularcolumns:: |l|L|
+----------------+---------------------------------------------------------+
| Option | Description |
+================+=========================================================+
| xscrollcommand | Used to communicate with horizontal scrollbars. |
| | |
| | When the view in the widget's window... | trusted_official_docs | CPython Docs | .. tabularcolumns:: |l|L|
+----------------+---------------------------------------------------------+
| Option | Description |
+================+=========================================================+
| xscrollcommand | Used to communicate with horizontal scrollbars. |
| | |
| | When the view in the widget's window... | .. tabularcolumns:: |l|L|
+----------------+---------------------------------------------------------+
| Option | Description |
+================+=========================================================+
| xscrollcommand | Used to communicate with horizontal scrollbars. |
| | |
| | When the view in the widget's window... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
460eff79-eac2-49c9-870f-32b164cbbbe9 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,226 | supabase-export-v2 | 291351055a8f7223 | different order than the order in which they are stored. * Column #0 always refers to the tree column, even if show="tree" is not specified.
A data column number is an index into an item's option values list; a display
column number is the column number in the tree where the values are displayed. Tree labels are displa... | trusted_official_docs | CPython Docs | different order than the order in which they are stored. * Column #0 always refers to the tree column, even if show="tree" is not specified.
A data column number is an index into an item's option values list; a display
column number is the column number in the tree where the values are displayed. Tree labels are displa... | different order than the order in which they are stored. * Column #0 always refers to the tree column, even if show="tree" is not specified.
A data column number is an index into an item's option values list; a display
column number is the column number in the tree where the values are displayed. Tree labels are displa... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4642da83-fc83-44fa-94a0-4bd6577142f1 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,235 | supabase-export-v2 | e0e90b6e06de73f4 | Returns the bounding box (relative to the treeview widget's window) of the specified *item* in the form (x, y, width, height).
If *column* is specified, returns the bounding box of that cell. If the
*item* is not visible (i.e., if it is a descendant of a closed item or is
scrolled offscreen), returns an empty string. | trusted_official_docs | CPython Docs | Returns the bounding box (relative to the treeview widget's window) of the specified *item* in the form (x, y, width, height).
If *column* is specified, returns the bounding box of that cell. If the
*item* is not visible (i.e., if it is a descendant of a closed item or is
scrolled offscreen), returns an empty string. | Returns the bounding box (relative to the treeview widget's window) of the specified *item* in the form (x, y, width, height).
If *column* is specified, returns the bounding box of that cell. If the
*item* is not visible (i.e., if it is a descendant of a closed item or is
scrolled offscreen), returns an empty string. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
476c7200-1eac-4da8-a9d4-2a83172dec8d | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,394 | supabase-export-v2 | 46ae6555eb9bc6dc | Create a new theme.
It is an error if *themename* already exists. If *parent* is specified,
the new theme will inherit styles, elements and layouts from the parent
theme. If *settings* are present they are expected to have the same
syntax used for :meth:`theme_settings`. | trusted_official_docs | CPython Docs | Create a new theme.
It is an error if *themename* already exists. If *parent* is specified,
the new theme will inherit styles, elements and layouts from the parent
theme. If *settings* are present they are expected to have the same
syntax used for :meth:`theme_settings`. | Create a new theme.
It is an error if *themename* already exists. If *parent* is specified,
the new theme will inherit styles, elements and layouts from the parent
theme. If *settings* are present they are expected to have the same
syntax used for :meth:`theme_settings`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
48ea512e-419c-4acd-80c5-8b54019c93ea | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,080 | supabase-export-v2 | 25b73627fc5951a2 | Returns the name of the element at position *x* *y*, or the empty string if the point does not lie within any element.
*x* and *y* are pixel coordinates relative to the widget. | trusted_official_docs | CPython Docs | Returns the name of the element at position *x* *y*, or the empty string if the point does not lie within any element.
*x* and *y* are pixel coordinates relative to the widget. | Returns the name of the element at position *x* *y*, or the empty string if the point does not lie within any element.
*x* and *y* are pixel coordinates relative to the widget. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4ade7c53-f2a5-41cc-99f6-67f1547e608b | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,054 | supabase-export-v2 | f90a5ccb229364c4 | empty string means that the traversal | | | scripts make the decision about whether or not to focus | | | on the window.
|
+-----------+--------------------------------------------------------------+
| style | May be used to specify a custom widget style. |
+-----------+-------------------------------------------------... | trusted_official_docs | CPython Docs | empty string means that the traversal | | | scripts make the decision about whether or not to focus | | | on the window.
|
+-----------+--------------------------------------------------------------+
| style | May be used to specify a custom widget style. |
+-----------+-------------------------------------------------... | empty string means that the traversal | | | scripts make the decision about whether or not to focus | | | on the window.
|
+-----------+--------------------------------------------------------------+
| style | May be used to specify a custom widget style. |
+-----------+-------------------------------------------------... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4caef460-ec39-4686-bead-4681f106ff60 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,225 | supabase-export-v2 | cd57bd27bf18645e | Notes:
* Item's option values may be displayed in a different order than the order
in which they are stored. * Column #0 always refers to the tree column, even if show="tree" is not
specified. | trusted_official_docs | CPython Docs | Notes:
* Item's option values may be displayed in a different order than the order
in which they are stored. * Column #0 always refers to the tree column, even if show="tree" is not
specified. | Notes:
* Item's option values may be displayed in a different order than the order
in which they are stored. * Column #0 always refers to the tree column, even if show="tree" is not
specified. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4da2d90c-13a2-4e9f-ad6a-a02e67f4af66 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,369 | supabase-export-v2 | 0998d68ce44a38e9 | theme, of the given *etype* which is expected to be either "image", "from" or "vsapi". The latter is only available in Tk 8.6 on Windows.
If "image" is used, *args* should contain the default image name followed
by statespec/value pairs (this is the imagespec), and *kw* may have the
following options: | trusted_official_docs | CPython Docs | theme, of the given *etype* which is expected to be either "image", "from" or "vsapi". The latter is only available in Tk 8.6 on Windows.
If "image" is used, *args* should contain the default image name followed
by statespec/value pairs (this is the imagespec), and *kw* may have the
following options: | theme, of the given *etype* which is expected to be either "image", "from" or "vsapi". The latter is only available in Tk 8.6 on Windows.
If "image" is used, *args* should contain the default image name followed
by statespec/value pairs (this is the imagespec), and *kw* may have the
following options: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4e472ecd-04a6-4421-811d-f08b4fc7497f | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,282 | supabase-export-v2 | bd362fc15c512645 | *iid* is specified, it is used as the item identifier; *iid* must not already exist in the tree. Otherwise, a new unique identifier is generated.
See `Item Options`_ for the list of available options. | trusted_official_docs | CPython Docs | *iid* is specified, it is used as the item identifier; *iid* must not already exist in the tree. Otherwise, a new unique identifier is generated.
See `Item Options`_ for the list of available options. | *iid* is specified, it is used as the item identifier; *iid* must not already exist in the tree. Otherwise, a new unique identifier is generated.
See `Item Options`_ for the list of available options. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4f884b50-a2fe-4d6f-a430-8b58be160367 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,063 | supabase-export-v2 | 825f26f11bd586d2 | .. tabularcolumns:: |l|p{0.7\linewidth}|
+--------------+-----------------------------------------------------------+
| Option | Description |
+==============+===========================================================+
| text | Specifies a text string to be displayed inside the widget.|
+--------------+---------------... | trusted_official_docs | CPython Docs | .. tabularcolumns:: |l|p{0.7\linewidth}|
+--------------+-----------------------------------------------------------+
| Option | Description |
+==============+===========================================================+
| text | Specifies a text string to be displayed inside the widget.|
+--------------+---------------... | .. tabularcolumns:: |l|p{0.7\linewidth}|
+--------------+-----------------------------------------------------------+
| Option | Description |
+==============+===========================================================+
| text | Specifies a text string to be displayed inside the widget.|
+--------------+---------------... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
54aee009-30c8-4dd0-8d70-31edcfb491f8 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,401 | supabase-export-v2 | 016ecd343d90b2b9 | root = tkinter.Tk()
style = ttk.Style()
style.theme_settings("default", {
"TCombobox": {
"configure": {"padding": 5},
"map": {
"background": [("active", "green2"),
("!disabled", "green4")],
"fieldbackground": [("!disabled", "green3")],
"foreground": [("focus", "OliveDrab1"),
("!disabled", "OliveDrab2")]
}
}
... | trusted_official_docs | CPython Docs | root = tkinter.Tk()
style = ttk.Style()
style.theme_settings("default", {
"TCombobox": {
"configure": {"padding": 5},
"map": {
"background": [("active", "green2"),
("!disabled", "green4")],
"fieldbackground": [("!disabled", "green3")],
"foreground": [("focus", "OliveDrab1"),
("!disabled", "OliveDrab2")]
}
}
... | root = tkinter.Tk()
style = ttk.Style()
style.theme_settings("default", {
"TCombobox": {
"configure": {"padding": 5},
"map": {
"background": [("active", "green2"),
("!disabled", "green4")],
"fieldbackground": [("!disabled", "green3")],
"foreground": [("focus", "OliveDrab1"),
("!disabled", "OliveDrab2")]
}
}
... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
552d215e-2f84-498a-be81-1d4cf3b482d1 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,253 | supabase-export-v2 | 58e2becf5af685c3 | Unlinks all of the specified *items* from the tree.
The items and all of their descendants are still present, and may be
reinserted at another point in the tree, but will not be displayed. | trusted_official_docs | CPython Docs | Unlinks all of the specified *items* from the tree.
The items and all of their descendants are still present, and may be
reinserted at another point in the tree, but will not be displayed. | Unlinks all of the specified *items* from the tree.
The items and all of their descendants are still present, and may be
reinserted at another point in the tree, but will not be displayed. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
55aa292c-8c1d-4423-93ee-77e09e801e84 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,368 | supabase-export-v2 | f4d138dca1bfa44d | .. method:: element_create(elementname, etype, *args, **kw)
Create a new element in the current theme, of the given *etype* which is
expected to be either "image", "from" or "vsapi". The latter is only available in Tk 8.6 on Windows. | trusted_official_docs | CPython Docs | .. method:: element_create(elementname, etype, *args, **kw)
Create a new element in the current theme, of the given *etype* which is
expected to be either "image", "from" or "vsapi". The latter is only available in Tk 8.6 on Windows. | .. method:: element_create(elementname, etype, *args, **kw)
Create a new element in the current theme, of the given *etype* which is
expected to be either "image", "from" or "vsapi". The latter is only available in Tk 8.6 on Windows. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
567dd572-0408-421e-b09b-7e093cec46ba | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,345 | supabase-export-v2 | 560014dde9fd2c0f | Query or sets dynamic values of the specified option(s) in *style*.
Each key in *kw* is an option and each value should be a list or a
tuple (usually) containing statespecs grouped in tuples, lists, or
some other preference. A statespec is a compound of one
or more states and then a value. | trusted_official_docs | CPython Docs | Query or sets dynamic values of the specified option(s) in *style*.
Each key in *kw* is an option and each value should be a list or a
tuple (usually) containing statespecs grouped in tuples, lists, or
some other preference. A statespec is a compound of one
or more states and then a value. | Query or sets dynamic values of the specified option(s) in *style*.
Each key in *kw* is an option and each value should be a list or a
tuple (usually) containing statespecs grouped in tuples, lists, or
some other preference. A statespec is a compound of one
or more states and then a value. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
577eda16-d327-4cc4-942a-3b0193ad8dd7 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,088 | supabase-export-v2 | bf545ab1114077a5 | The :class:`ttk.Combobox` widget combines a text field with a pop-down list of values. This widget is a subclass of :class:`Entry`.
Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`,
:meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate`
and :meth:`Widget.state`, and the followi... | trusted_official_docs | CPython Docs | The :class:`ttk.Combobox` widget combines a text field with a pop-down list of values. This widget is a subclass of :class:`Entry`.
Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`,
:meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate`
and :meth:`Widget.state`, and the followi... | The :class:`ttk.Combobox` widget combines a text field with a pop-down list of values. This widget is a subclass of :class:`Entry`.
Besides the methods inherited from :class:`Widget`: :meth:`Widget.cget`,
:meth:`Widget.configure`, :meth:`Widget.identify`, :meth:`Widget.instate`
and :meth:`Widget.state`, and the followi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
57ff4247-5349-4d27-a487-0c2eb910254c | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,356 | supabase-export-v2 | 1a547b399f6e3315 | one or more states. If the *default* argument is set, it is used as a fallback value in case no specification for option is found.
To check what font a Button uses by default:: | trusted_official_docs | CPython Docs | one or more states. If the *default* argument is set, it is used as a fallback value in case no specification for option is found.
To check what font a Button uses by default:: | one or more states. If the *default* argument is set, it is used as a fallback value in case no specification for option is found.
To check what font a Button uses by default:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5816940f-068d-4f2a-9690-92f6f5b97ed1 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,407 | supabase-export-v2 | 357d531e9fbe8318 | Layouts ^^^^^^^
A layout can be just ``None``, if it takes no options, or a dict of
options specifying how to arrange the element. The layout mechanism
uses a simplified version of the pack geometry manager: given an
initial cavity, each element is allocated a parcel. | trusted_official_docs | CPython Docs | Layouts ^^^^^^^
A layout can be just ``None``, if it takes no options, or a dict of
options specifying how to arrange the element. The layout mechanism
uses a simplified version of the pack geometry manager: given an
initial cavity, each element is allocated a parcel. | Layouts ^^^^^^^
A layout can be just ``None``, if it takes no options, or a dict of
options specifying how to arrange the element. The layout mechanism
uses a simplified version of the pack geometry manager: given an
initial cavity, each element is allocated a parcel. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5995fd0a-2f48-45cb-bb64-20e3f6b4f469 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.ttk.rst | unknown | d87d35f4-ce6c-4c73-888c-f9df9e8f2572 | 16,132 | supabase-export-v2 | fadc9ca5d4f85081 | compound | Specifies how to display the image relative to the text, in | | | the case both options text and image are present.
See |
| | `Label Options`_ for legal values. |
+-----------+--------------------------------------------------------------+
| underline | Specifies the index (0-based) of a character to underli... | trusted_official_docs | CPython Docs | compound | Specifies how to display the image relative to the text, in | | | the case both options text and image are present.
See |
| | `Label Options`_ for legal values. |
+-----------+--------------------------------------------------------------+
| underline | Specifies the index (0-based) of a character to underli... | compound | Specifies how to display the image relative to the text, in | | | the case both options text and image are present.
See |
| | `Label Options`_ for legal values. |
+-----------+--------------------------------------------------------------+
| underline | Specifies the index (0-based) of a character to underli... | python, official-docs, cpython, P0 | Local_Trusted_Corpus |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.