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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74b8c1e1-eea9-4ed0-8688-3464461d6e50 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,233 | supabase-export-v2 | 94cfa14a78de5ea6 | specify the full path to that environment's Python interpreter when invoking Python. Furthermore, all scripts installed in the environment should be runnable without activating it.
In order to achieve this, scripts installed into virtual environments have
a "shebang" line which points to the environment's Python interp... | trusted_official_docs | CPython Docs | specify the full path to that environment's Python interpreter when invoking Python. Furthermore, all scripts installed in the environment should be runnable without activating it.
In order to achieve this, scripts installed into virtual environments have
a "shebang" line which points to the environment's Python interp... | specify the full path to that environment's Python interpreter when invoking Python. Furthermore, all scripts installed in the environment should be runnable without activating it.
In order to achieve this, scripts installed into virtual environments have
a "shebang" line which points to the environment's Python interp... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7a57553c-f3b9-4bf5-a1ba-d7fde2e2c078 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,168 | supabase-export-v2 | 3dd09d025d3050a6 | * Not checked into source control systems such as Git.
* Considered as disposable -- it should be simple to delete and recreate it from
scratch. You don't place any project code in the environment. | trusted_official_docs | CPython Docs | * Not checked into source control systems such as Git.
* Considered as disposable -- it should be simple to delete and recreate it from
scratch. You don't place any project code in the environment. | * Not checked into source control systems such as Git.
* Considered as disposable -- it should be simple to delete and recreate it from
scratch. You don't place any project code in the environment. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7de7235a-8bf7-4b7b-adc0-20968cbf104e | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,321 | supabase-export-v2 | a90ee4bd779b3753 | creation request being processed. """ os.environ['VIRTUAL_ENV'] = context.env_dir if not self.nodist: self.install_setuptools(context) # Can't install pip without setuptools if not self.nopip and not self.nodist: self.install_pip(context)
def reader(self, stream, context):
"""
Read lines from a subprocess' output str... | trusted_official_docs | CPython Docs | creation request being processed. """ os.environ['VIRTUAL_ENV'] = context.env_dir if not self.nodist: self.install_setuptools(context) # Can't install pip without setuptools if not self.nopip and not self.nodist: self.install_pip(context)
def reader(self, stream, context):
"""
Read lines from a subprocess' output str... | creation request being processed. """ os.environ['VIRTUAL_ENV'] = context.env_dir if not self.nodist: self.install_setuptools(context) # Can't install pip without setuptools if not self.nopip and not self.nodist: self.install_pip(context)
def reader(self, stream, context):
"""
Read lines from a subprocess' output str... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7f29b6a9-cfc6-4d83-bb4a-e288fb05bc96 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,329 | supabase-export-v2 | 441040935ef21f06 | options.upgrade and options.clear: raise ValueError('you cannot supply --upgrade and --clear together.') builder = ExtendedEnvBuilder(system_site_packages=options.system_site, clear=options.clear, symlinks=options.symlinks, upgrade=options.upgrade, nodist=options.nodist, nopip=options.nopip, verbose=options.verbose) fo... | trusted_official_docs | CPython Docs | options.upgrade and options.clear: raise ValueError('you cannot supply --upgrade and --clear together.') builder = ExtendedEnvBuilder(system_site_packages=options.system_site, clear=options.clear, symlinks=options.symlinks, upgrade=options.upgrade, nodist=options.nodist, nopip=options.nopip, verbose=options.verbose) fo... | options.upgrade and options.clear: raise ValueError('you cannot supply --upgrade and --clear together.') builder = ExtendedEnvBuilder(system_site_packages=options.system_site, clear=options.clear, symlinks=options.symlinks, upgrade=options.upgrade, nodist=options.nodist, nopip=options.nopip, verbose=options.verbose) fo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
7fb9b8a7-cc4b-48d2-ae4d-8c1cb11f4129 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,222 | supabase-export-v2 | 25e742d17a095cc6 | See `About Execution Policies <https://go.microsoft.com/fwlink/?LinkID=135170>`_ for more information.
The created :file:`pyvenv.cfg` file also includes the
``include-system-site-packages`` key, set to ``true`` if ``venv`` is
run with the ``--system-site-packages`` option, ``false`` otherwise. | trusted_official_docs | CPython Docs | See `About Execution Policies <https://go.microsoft.com/fwlink/?LinkID=135170>`_ for more information.
The created :file:`pyvenv.cfg` file also includes the
``include-system-site-packages`` key, set to ``true`` if ``venv`` is
run with the ``--system-site-packages`` option, ``false`` otherwise. | See `About Execution Policies <https://go.microsoft.com/fwlink/?LinkID=135170>`_ for more information.
The created :file:`pyvenv.cfg` file also includes the
``include-system-site-packages`` key, set to ``true`` if ``venv`` is
run with the ``--system-site-packages`` option, ``false`` otherwise. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
81c4d1f0-0b7a-4471-ab7b-43e5d3dd20ff | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,258 | supabase-export-v2 | c849c3024ad3c6e3 | The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks available for subclass customization::
def create(self, env_dir):
"""
Create a virtualized Python environment in a directory. env_dir is the target directory to create an environment in. """
env_dir = os.path.abspath(env_dir)
context = sel... | trusted_official_docs | CPython Docs | The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks available for subclass customization::
def create(self, env_dir):
"""
Create a virtualized Python environment in a directory. env_dir is the target directory to create an environment in. """
env_dir = os.path.abspath(env_dir)
context = sel... | The ``create`` method of the :class:`EnvBuilder` class illustrates the hooks available for subclass customization::
def create(self, env_dir):
"""
Create a virtualized Python environment in a directory. env_dir is the target directory to create an environment in. """
env_dir = os.path.abspath(env_dir)
context = sel... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
847b887e-c225-42b5-83fe-8f1e710f1cd9 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,256 | supabase-export-v2 | 78eaf36eb79fb5af | .. method:: create(env_dir)
Create a virtual environment by specifying the target directory
(absolute or relative to the current directory) which is to contain the
virtual environment. The ``create`` method will either create the
environment in the specified directory, or raise an appropriate
exception. | trusted_official_docs | CPython Docs | .. method:: create(env_dir)
Create a virtual environment by specifying the target directory
(absolute or relative to the current directory) which is to contain the
virtual environment. The ``create`` method will either create the
environment in the specified directory, or raise an appropriate
exception. | .. method:: create(env_dir)
Create a virtual environment by specifying the target directory
(absolute or relative to the current directory) which is to contain the
virtual environment. The ``create`` method will either create the
environment in the specified directory, or raise an appropriate
exception. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
85c2f8de-5e94-4588-9404-c4b930c6a635 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,245 | supabase-export-v2 | 916117b936fe1857 | * *symlinks* -- a boolean value indicating whether to attempt to symlink the Python binary rather than copying.
* *upgrade* -- a boolean value which, if true, will upgrade an existing
environment with the running Python - for use when that Python has been
upgraded in-place (defaults to ``False``). | trusted_official_docs | CPython Docs | * *symlinks* -- a boolean value indicating whether to attempt to symlink the Python binary rather than copying.
* *upgrade* -- a boolean value which, if true, will upgrade an existing
environment with the running Python - for use when that Python has been
upgraded in-place (defaults to ``False``). | * *symlinks* -- a boolean value indicating whether to attempt to symlink the Python binary rather than copying.
* *upgrade* -- a boolean value which, if true, will upgrade an existing
environment with the running Python - for use when that Python has been
upgraded in-place (defaults to ``False``). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
88ec063a-4e30-4df0-a3eb-7832723679ab | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,179 | supabase-export-v2 | fa7edd72d7a7f62c | at environment creation time). It also creates a :file:`lib/pythonX.Y/site-packages` subdirectory (on Windows, this is :file:`Lib\\site-packages`). If an existing directory is specified, it will be re-used.
.. versionchanged:: 3.5
The use of ``venv`` is now recommended for creating virtual environments. | trusted_official_docs | CPython Docs | at environment creation time). It also creates a :file:`lib/pythonX.Y/site-packages` subdirectory (on Windows, this is :file:`Lib\\site-packages`). If an existing directory is specified, it will be re-used.
.. versionchanged:: 3.5
The use of ``venv`` is now recommended for creating virtual environments. | at environment creation time). It also creates a :file:`lib/pythonX.Y/site-packages` subdirectory (on Windows, this is :file:`Lib\\site-packages`). If an existing directory is specified, it will be re-used.
.. versionchanged:: 3.5
The use of ``venv`` is now recommended for creating virtual environments. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8a6745f4-8464-4d6b-85dc-9e7827324efc | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,217 | supabase-export-v2 | dbb2a0ea5e4ed483 | Added the ``--without-scm-ignore-files`` option. .. versionchanged:: 3.13 ``venv`` now creates a :file:`.gitignore` file for Git by default.
.. note::
While symlinks are supported on Windows, they are not recommended. Of
particular note is that double-clicking ``python.exe`` in File Explorer
will resolve the symlink... | trusted_official_docs | CPython Docs | Added the ``--without-scm-ignore-files`` option. .. versionchanged:: 3.13 ``venv`` now creates a :file:`.gitignore` file for Git by default.
.. note::
While symlinks are supported on Windows, they are not recommended. Of
particular note is that double-clicking ``python.exe`` in File Explorer
will resolve the symlink... | Added the ``--without-scm-ignore-files`` option. .. versionchanged:: 3.13 ``venv`` now creates a :file:`.gitignore` file for Git by default.
.. note::
While symlinks are supported on Windows, they are not recommended. Of
particular note is that double-clicking ``python.exe`` in File Explorer
will resolve the symlink... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
8d02c2db-aafe-417f-be68-8371290e209a | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,265 | supabase-export-v2 | 4478f1edbca7c700 | * ``env_name`` - The name of the virtual environment. Used for ``__VENV_NAME__`` in activation scripts (see :meth:`install_scripts`).
* ``prompt`` - The prompt to be used by the activation scripts. Used for
``__VENV_PROMPT__`` in activation scripts (see :meth:`install_scripts`). | trusted_official_docs | CPython Docs | * ``env_name`` - The name of the virtual environment. Used for ``__VENV_NAME__`` in activation scripts (see :meth:`install_scripts`).
* ``prompt`` - The prompt to be used by the activation scripts. Used for
``__VENV_PROMPT__`` in activation scripts (see :meth:`install_scripts`). | * ``env_name`` - The name of the virtual environment. Used for ``__VENV_NAME__`` in activation scripts (see :meth:`install_scripts`).
* ``prompt`` - The prompt to be used by the activation scripts. Used for
``__VENV_PROMPT__`` in activation scripts (see :meth:`install_scripts`). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
922d3310-4b73-43fa-9a2c-7a3582f60ab6 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,228 | supabase-export-v2 | 838ab468238fa669 | used to create the environment. It is sufficient to check ``sys.prefix != sys.base_prefix`` to determine if the current interpreter is running from a virtual environment.
A virtual environment may be "activated" using a script in its binary directory
(``bin`` on POSIX; ``Scripts`` on Windows). This will prepend that di... | trusted_official_docs | CPython Docs | used to create the environment. It is sufficient to check ``sys.prefix != sys.base_prefix`` to determine if the current interpreter is running from a virtual environment.
A virtual environment may be "activated" using a script in its binary directory
(``bin`` on POSIX; ``Scripts`` on Windows). This will prepend that di... | used to create the environment. It is sufficient to check ``sys.prefix != sys.base_prefix`` to determine if the current interpreter is running from a virtual environment.
A virtual environment may be "activated" using a script in its binary directory
(``bin`` on POSIX; ``Scripts`` on Windows). This will prepend that di... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
94e19a67-3ca9-4a67-857a-8b8555d12569 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,248 | supabase-export-v2 | b94f948ea18e2ed3 | name of the environment would be used). If the special string ``"."`` is provided, the basename of the current directory is used as the prompt.
* *upgrade_deps* -- Update the base venv modules to the latest on PyPI | trusted_official_docs | CPython Docs | name of the environment would be used). If the special string ``"."`` is provided, the basename of the current directory is used as the prompt.
* *upgrade_deps* -- Update the base venv modules to the latest on PyPI | name of the environment would be used). If the special string ``"."`` is provided, the basename of the current directory is used as the prompt.
* *upgrade_deps* -- Update the base venv modules to the latest on PyPI | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
97980b13-4d7a-479f-bf5c-5d525b57ab59 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,295 | supabase-export-v2 | 95a3edd0f7206b9b | * ``__VENV_PROMPT__`` is replaced with the prompt (the environment name surrounded by parentheses and with a following space)
* ``__VENV_BIN_NAME__`` is replaced with the name of the bin directory
(either ``bin`` or ``Scripts``). | trusted_official_docs | CPython Docs | * ``__VENV_PROMPT__`` is replaced with the prompt (the environment name surrounded by parentheses and with a following space)
* ``__VENV_BIN_NAME__`` is replaced with the name of the bin directory
(either ``bin`` or ``Scripts``). | * ``__VENV_PROMPT__`` is replaced with the prompt (the environment name surrounded by parentheses and with a following space)
* ``__VENV_BIN_NAME__`` is replaced with the name of the bin directory
(either ``bin`` or ``Scripts``). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9d4ad90d-37df-4da0-a50e-9051181c023e | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,165 | supabase-export-v2 | 737e27a0677cd8b4 | A virtual environment is (amongst other things):
* Used to contain a specific Python interpreter and software libraries and
binaries which are needed to support a project (library or application). These
are by default isolated from software in other virtual environments and Python
interpreters and libraries installe... | trusted_official_docs | CPython Docs | A virtual environment is (amongst other things):
* Used to contain a specific Python interpreter and software libraries and
binaries which are needed to support a project (library or application). These
are by default isolated from software in other virtual environments and Python
interpreters and libraries installe... | A virtual environment is (amongst other things):
* Used to contain a specific Python interpreter and software libraries and
binaries which are needed to support a project (library or application). These
are by default isolated from software in other virtual environments and Python
interpreters and libraries installe... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9e24c9ca-4605-4155-8c3a-cd82979669ab | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,223 | supabase-export-v2 | 33bfe1c6d071b743 | The created :file:`pyvenv.cfg` file also includes the ``include-system-site-packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-packages`` option, ``false`` otherwise.
Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be
invoked to bootstrap ``pip`` into the virtual environment... | trusted_official_docs | CPython Docs | The created :file:`pyvenv.cfg` file also includes the ``include-system-site-packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-packages`` option, ``false`` otherwise.
Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be
invoked to bootstrap ``pip`` into the virtual environment... | The created :file:`pyvenv.cfg` file also includes the ``include-system-site-packages`` key, set to ``true`` if ``venv`` is run with the ``--system-site-packages`` option, ``false`` otherwise.
Unless the ``--without-pip`` option is given, :mod:`ensurepip` will be
invoked to bootstrap ``pip`` into the virtual environment... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
9fdcd625-4b26-49d8-804f-a562dd60705a | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,285 | supabase-export-v2 | 8b7afec2c63c8602 | Upgrades the core venv dependency packages (currently :pypi:`pip`) in the environment. This is done by shelling out to the ``pip`` executable in the environment.
.. versionadded:: 3.9
.. versionchanged:: 3.12 | trusted_official_docs | CPython Docs | Upgrades the core venv dependency packages (currently :pypi:`pip`) in the environment. This is done by shelling out to the ``pip`` executable in the environment.
.. versionadded:: 3.9
.. versionchanged:: 3.12 | Upgrades the core venv dependency packages (currently :pypi:`pip`) in the environment. This is done by shelling out to the ``pip`` executable in the environment.
.. versionadded:: 3.9
.. versionchanged:: 3.12 | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a00dd247-e706-4bdd-ac69-79a2d66b27fb | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,259 | supabase-export-v2 | eb47110360036ae9 | environment in a directory. env_dir is the target directory to create an environment in. """ env_dir = os.path.abspath(env_dir) context = self.ensure_directories(env_dir) self.create_configuration(context) self.setup_python(context) self.setup_scripts(context) self.post_setup(context)
Each of the methods :meth:`ensure_... | trusted_official_docs | CPython Docs | environment in a directory. env_dir is the target directory to create an environment in. """ env_dir = os.path.abspath(env_dir) context = self.ensure_directories(env_dir) self.create_configuration(context) self.setup_python(context) self.setup_scripts(context) self.post_setup(context)
Each of the methods :meth:`ensure_... | environment in a directory. env_dir is the target directory to create an environment in. """ env_dir = os.path.abspath(env_dir) context = self.ensure_directories(env_dir) self.create_configuration(context) self.setup_python(context) self.setup_scripts(context) self.post_setup(context)
Each of the methods :meth:`ensure_... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a2333af1-6423-4440-bbef-b4c36b3cd321 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,257 | supabase-export-v2 | e8f672e688b11dee | directory) which is to contain the virtual environment. The ``create`` method will either create the environment in the specified directory, or raise an appropriate exception.
The ``create`` method of the :class:`EnvBuilder` class illustrates the
hooks available for subclass customization:: | trusted_official_docs | CPython Docs | directory) which is to contain the virtual environment. The ``create`` method will either create the environment in the specified directory, or raise an appropriate exception.
The ``create`` method of the :class:`EnvBuilder` class illustrates the
hooks available for subclass customization:: | directory) which is to contain the virtual environment. The ``create`` method will either create the environment in the specified directory, or raise an appropriate exception.
The ``create`` method of the :class:`EnvBuilder` class illustrates the
hooks available for subclass customization:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a66c2fe3-fdaa-470c-8bcf-499267be4cbf | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,266 | supabase-export-v2 | f4dcbe344545aeb9 | * ``prompt`` - The prompt to be used by the activation scripts. Used for ``__VENV_PROMPT__`` in activation scripts (see :meth:`install_scripts`).
* ``executable`` - The underlying Python executable used by the virtual
environment. This takes into account the case where a virtual environment
is created from another vi... | trusted_official_docs | CPython Docs | * ``prompt`` - The prompt to be used by the activation scripts. Used for ``__VENV_PROMPT__`` in activation scripts (see :meth:`install_scripts`).
* ``executable`` - The underlying Python executable used by the virtual
environment. This takes into account the case where a virtual environment
is created from another vi... | * ``prompt`` - The prompt to be used by the activation scripts. Used for ``__VENV_PROMPT__`` in activation scripts (see :meth:`install_scripts`).
* ``executable`` - The underlying Python executable used by the virtual
environment. This takes into account the case where a virtual environment
is created from another vi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
a6b79bec-bf1d-4e13-9414-ff113efedc02 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,235 | supabase-export-v2 | fb13de03fde4e10d | explicitly activating a virtual environment is not required to use it, :envvar:`!VIRTUAL_ENV` cannot be relied upon to determine whether a virtual environment is being used.
.. warning:: Because scripts installed in environments should not expect the
environment to be activated, their shebang lines contain the absolut... | trusted_official_docs | CPython Docs | explicitly activating a virtual environment is not required to use it, :envvar:`!VIRTUAL_ENV` cannot be relied upon to determine whether a virtual environment is being used.
.. warning:: Because scripts installed in environments should not expect the
environment to be activated, their shebang lines contain the absolut... | explicitly activating a virtual environment is not required to use it, :envvar:`!VIRTUAL_ENV` cannot be relied upon to determine whether a virtual environment is being used.
.. warning:: Because scripts installed in environments should not expect the
environment to be activated, their shebang lines contain the absolut... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ab596fa9-5f80-43a9-a5e2-801612051e2a | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,211 | supabase-export-v2 | cef1bf7fae4c5354 | .. versionchanged:: 3.4 Installs pip by default, added the ``--without-pip`` and ``--copies`` options.
.. versionchanged:: 3.4
In earlier versions, if the target directory already existed, an error was
raised, unless the ``--clear`` or ``--upgrade`` option was provided. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.4 Installs pip by default, added the ``--without-pip`` and ``--copies`` options.
.. versionchanged:: 3.4
In earlier versions, if the target directory already existed, an error was
raised, unless the ``--clear`` or ``--upgrade`` option was provided. | .. versionchanged:: 3.4 Installs pip by default, added the ``--without-pip`` and ``--copies`` options.
.. versionchanged:: 3.4
In earlier versions, if the target directory already existed, an error was
raised, unless the ``--clear`` or ``--upgrade`` option was provided. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ad2acdd4-ec0b-4676-b024-05b754916988 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,169 | supabase-export-v2 | a3db3c398f2e5209 | * Considered as disposable -- it should be simple to delete and recreate it from scratch. You don't place any project code in the environment.
* Not considered as movable or copyable -- you just recreate the same
environment in the target location. | trusted_official_docs | CPython Docs | * Considered as disposable -- it should be simple to delete and recreate it from scratch. You don't place any project code in the environment.
* Not considered as movable or copyable -- you just recreate the same
environment in the target location. | * Considered as disposable -- it should be simple to delete and recreate it from scratch. You don't place any project code in the environment.
* Not considered as movable or copyable -- you just recreate the same
environment in the target location. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b1553303-ba10-471a-98dc-f57bb90f31d1 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,322 | supabase-export-v2 | 759bf504c83d8d8a | while True: s = stream.readline() if not s: break if progress is not None: progress(s, context) else: if not self.verbose: sys.stderr.write('.') else: sys.stderr.write(s.decode('utf-8')) sys.stderr.flush() stream.close()
def install_script(self, context, name, url):
_, _, path, _, _ = urlsplit(url)
fn = os.path.split... | trusted_official_docs | CPython Docs | while True: s = stream.readline() if not s: break if progress is not None: progress(s, context) else: if not self.verbose: sys.stderr.write('.') else: sys.stderr.write(s.decode('utf-8')) sys.stderr.flush() stream.close()
def install_script(self, context, name, url):
_, _, path, _, _ = urlsplit(url)
fn = os.path.split... | while True: s = stream.readline() if not s: break if progress is not None: progress(s, context) else: if not self.verbose: sys.stderr.write('.') else: sys.stderr.write(s.decode('utf-8')) sys.stderr.flush() stream.close()
def install_script(self, context, name, url):
_, _, path, _, _ = urlsplit(url)
fn = os.path.split... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
b9fc8d03-f307-4a76-b644-1926da6bbc37 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,218 | supabase-export-v2 | 2458a0483c9cf292 | Windows, they are not recommended. Of particular note is that double-clicking ``python.exe`` in File Explorer will resolve the symlink eagerly and ignore the virtual environment.
.. note::
On Microsoft Windows, it may be required to enable the ``Activate.ps1``
script by setting the execution policy for the user. You ... | trusted_official_docs | CPython Docs | Windows, they are not recommended. Of particular note is that double-clicking ``python.exe`` in File Explorer will resolve the symlink eagerly and ignore the virtual environment.
.. note::
On Microsoft Windows, it may be required to enable the ``Activate.ps1``
script by setting the execution policy for the user. You ... | Windows, they are not recommended. Of particular note is that double-clicking ``python.exe`` in File Explorer will resolve the symlink eagerly and ignore the virtual environment.
.. note::
On Microsoft Windows, it may be required to enable the ``Activate.ps1``
script by setting the execution policy for the user. You ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
bbe1cbb7-76d1-47e0-90a3-7327144a0c5b | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,180 | supabase-export-v2 | 31bdf1ebd09a8e7a | .. versionchanged:: 3.5 The use of ``venv`` is now recommended for creating virtual environments.
.. deprecated-removed:: 3.6 3.8
:program:`pyvenv` was the recommended tool for creating virtual environments
for Python 3.3 and 3.4, and replaced in 3.5 by executing ``venv`` directly. | trusted_official_docs | CPython Docs | .. versionchanged:: 3.5 The use of ``venv`` is now recommended for creating virtual environments.
.. deprecated-removed:: 3.6 3.8
:program:`pyvenv` was the recommended tool for creating virtual environments
for Python 3.3 and 3.4, and replaced in 3.5 by executing ``venv`` directly. | .. versionchanged:: 3.5 The use of ``venv`` is now recommended for creating virtual environments.
.. deprecated-removed:: 3.6 3.8
:program:`pyvenv` was the recommended tool for creating virtual environments
for Python 3.3 and 3.4, and replaced in 3.5 by executing ``venv`` directly. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
be211a28-8a04-47be-ac37-3eda524ba2a1 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,166 | supabase-export-v2 | 7544fec54264596d | project (library or application). These are by default isolated from software in other virtual environments and Python interpreters and libraries installed in the operating system.
* Contained in a directory, conventionally named ``.venv`` or ``venv`` in
the project directory, or under a container directory for lots o... | trusted_official_docs | CPython Docs | project (library or application). These are by default isolated from software in other virtual environments and Python interpreters and libraries installed in the operating system.
* Contained in a directory, conventionally named ``.venv`` or ``venv`` in
the project directory, or under a container directory for lots o... | project (library or application). These are by default isolated from software in other virtual environments and Python interpreters and libraries installed in the operating system.
* Contained in a directory, conventionally named ``.venv`` or ``venv`` in
the project directory, or under a container directory for lots o... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c184992d-3306-41b9-a8ac-e69e9b20e162 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,271 | supabase-export-v2 | 8ce29ca27575ff31 | * ``bin_path`` - The script path for the virtual environment.
* ``bin_name`` - The name of the script path relative to the virtual
environment location. Used for ``__VENV_BIN_NAME__`` in activation
scripts (see :meth:`install_scripts`). | trusted_official_docs | CPython Docs | * ``bin_path`` - The script path for the virtual environment.
* ``bin_name`` - The name of the script path relative to the virtual
environment location. Used for ``__VENV_BIN_NAME__`` in activation
scripts (see :meth:`install_scripts`). | * ``bin_path`` - The script path for the virtual environment.
* ``bin_name`` - The name of the script path relative to the virtual
environment location. Used for ``__VENV_BIN_NAME__`` in activation
scripts (see :meth:`install_scripts`). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
c55c7f4a-58e2-4f27-a47e-5f846d2e8a02 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,162 | supabase-export-v2 | 7de15601618a1c72 | .. _venv-def: .. _venv-intro:
The :mod:`!venv` module supports creating lightweight "virtual environments",
each with their own independent set of Python packages installed in
their :mod:`site` directories. A virtual environment is created on top of an existing
Python installation, known as the virtual environment's "b... | trusted_official_docs | CPython Docs | .. _venv-def: .. _venv-intro:
The :mod:`!venv` module supports creating lightweight "virtual environments",
each with their own independent set of Python packages installed in
their :mod:`site` directories. A virtual environment is created on top of an existing
Python installation, known as the virtual environment's "b... | .. _venv-def: .. _venv-intro:
The :mod:`!venv` module supports creating lightweight "virtual environments",
each with their own independent set of Python packages installed in
their :mod:`site` directories. A virtual environment is created on top of an existing
Python installation, known as the virtual environment's "b... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ca93e8b3-d26e-4654-830f-7826d922aba6 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,262 | supabase-export-v2 | 654cef1552d97da9 | If the :class:`EnvBuilder` is created with the arg ``clear=True``, contents of the environment directory will be cleared and then all necessary subdirectories will be recreated.
The returned context object is a :class:`types.SimpleNamespace` with the
following attributes: | trusted_official_docs | CPython Docs | If the :class:`EnvBuilder` is created with the arg ``clear=True``, contents of the environment directory will be cleared and then all necessary subdirectories will be recreated.
The returned context object is a :class:`types.SimpleNamespace` with the
following attributes: | If the :class:`EnvBuilder` is created with the arg ``clear=True``, contents of the environment directory will be cleared and then all necessary subdirectories will be recreated.
The returned context object is a :class:`types.SimpleNamespace` with the
following attributes: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cdac3459-36fb-4f75-ac03-1e7b662b4801 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,328 | supabase-export-v2 | 5137d16fb992dc7e | def main(args=None): import argparse
parser = argparse.ArgumentParser(prog=__name__,
description='Creates virtual Python '
'environments in one or '
'more target '
'directories.')
parser.add_argument('dirs', metavar='ENV_DIR', nargs='+',
help='A directory in which to create the '
'virtual environment.')
parser.... | trusted_official_docs | CPython Docs | def main(args=None): import argparse
parser = argparse.ArgumentParser(prog=__name__,
description='Creates virtual Python '
'environments in one or '
'more target '
'directories.')
parser.add_argument('dirs', metavar='ENV_DIR', nargs='+',
help='A directory in which to create the '
'virtual environment.')
parser.... | def main(args=None): import argparse
parser = argparse.ArgumentParser(prog=__name__,
description='Creates virtual Python '
'environments in one or '
'more target '
'directories.')
parser.add_argument('dirs', metavar='ENV_DIR', nargs='+',
help='A directory in which to create the '
'virtual environment.')
parser.... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
cf0196b0-e4e7-4cb6-8db8-4d828bf0ec54 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,244 | supabase-export-v2 | 5155832341f4fd8d | * *clear* -- a boolean value which, if true, will delete the contents of any existing target directory, before creating the environment.
* *symlinks* -- a boolean value indicating whether to attempt to symlink the
Python binary rather than copying. | trusted_official_docs | CPython Docs | * *clear* -- a boolean value which, if true, will delete the contents of any existing target directory, before creating the environment.
* *symlinks* -- a boolean value indicating whether to attempt to symlink the
Python binary rather than copying. | * *clear* -- a boolean value which, if true, will delete the contents of any existing target directory, before creating the environment.
* *symlinks* -- a boolean value indicating whether to attempt to symlink the
Python binary rather than copying. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d64bf322-427b-4901-a153-69b471e9ab8d | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,234 | supabase-export-v2 | 1895dc5fa50d2d27 | installed script in a Windows Explorer window should run it with the correct interpreter without the environment needing to be activated or on the :envvar:`PATH`.
When a virtual environment has been activated, the :envvar:`!VIRTUAL_ENV`
environment variable is set to the path of the environment. Since explicitly activa... | trusted_official_docs | CPython Docs | installed script in a Windows Explorer window should run it with the correct interpreter without the environment needing to be activated or on the :envvar:`PATH`.
When a virtual environment has been activated, the :envvar:`!VIRTUAL_ENV`
environment variable is set to the path of the environment. Since explicitly activa... | installed script in a Windows Explorer window should run it with the correct interpreter without the environment needing to be activated or on the :envvar:`PATH`.
When a virtual environment has been activated, the :envvar:`!VIRTUAL_ENV`
environment variable is set to the path of the environment. Since explicitly activa... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
d983e5d3-c693-4857-9344-bf518e7f6c6a | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,232 | supabase-export-v2 | a8bcbe0145c06232 | .. versionadded:: 3.8 PowerShell activation scripts installed under POSIX for PowerShell Core support.
You don't specifically *need* to activate a virtual environment,
as you can just specify the full path to that environment's
Python interpreter when invoking Python. Furthermore, all scripts installed in the environme... | trusted_official_docs | CPython Docs | .. versionadded:: 3.8 PowerShell activation scripts installed under POSIX for PowerShell Core support.
You don't specifically *need* to activate a virtual environment,
as you can just specify the full path to that environment's
Python interpreter when invoking Python. Furthermore, all scripts installed in the environme... | .. versionadded:: 3.8 PowerShell activation scripts installed under POSIX for PowerShell Core support.
You don't specifically *need* to activate a virtual environment,
as you can just specify the full path to that environment's
Python interpreter when invoking Python. Furthermore, all scripts installed in the environme... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e02261a7-7ebd-4eae-b01f-632f7ea0ebde | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,267 | supabase-export-v2 | d6325d83b1c19436 | The underlying Python executable used by the virtual environment. This takes into account the case where a virtual environment is created from another virtual environment.
* ``inc_path`` - The include path for the virtual environment. | trusted_official_docs | CPython Docs | The underlying Python executable used by the virtual environment. This takes into account the case where a virtual environment is created from another virtual environment.
* ``inc_path`` - The include path for the virtual environment. | The underlying Python executable used by the virtual environment. This takes into account the case where a virtual environment is created from another virtual environment.
* ``inc_path`` - The include path for the virtual environment. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
e692b376-377f-4f82-8950-bce2e39071ed | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,273 | supabase-export-v2 | 5bf702c1d38e1a1b | * ``env_exe`` - The name of the Python interpreter in the virtual environment. Used for ``__VENV_PYTHON__`` in activation scripts (see :meth:`install_scripts`).
* ``env_exec_cmd`` - The name of the Python interpreter, taking into
account filesystem redirections. This can be used to run Python in
the virtual environme... | trusted_official_docs | CPython Docs | * ``env_exe`` - The name of the Python interpreter in the virtual environment. Used for ``__VENV_PYTHON__`` in activation scripts (see :meth:`install_scripts`).
* ``env_exec_cmd`` - The name of the Python interpreter, taking into
account filesystem redirections. This can be used to run Python in
the virtual environme... | * ``env_exe`` - The name of the Python interpreter in the virtual environment. Used for ``__VENV_PYTHON__`` in activation scripts (see :meth:`install_scripts`).
* ``env_exec_cmd`` - The name of the Python interpreter, taking into
account filesystem redirections. This can be used to run Python in
the virtual environme... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
ea7461ce-512a-4b05-9b9e-b0343a5e2b66 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,243 | supabase-export-v2 | b4d2f894e4f15d96 | * *system_site_packages* -- a boolean value indicating that the system Python site-packages should be available to the environment (defaults to ``False``).
* *clear* -- a boolean value which, if true, will delete the contents of
any existing target directory, before creating the environment. | trusted_official_docs | CPython Docs | * *system_site_packages* -- a boolean value indicating that the system Python site-packages should be available to the environment (defaults to ``False``).
* *clear* -- a boolean value which, if true, will delete the contents of
any existing target directory, before creating the environment. | * *system_site_packages* -- a boolean value indicating that the system Python site-packages should be available to the environment (defaults to ``False``).
* *clear* -- a boolean value which, if true, will delete the contents of
any existing target directory, before creating the environment. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
eb77ed51-e114-451e-bb92-2cbaac94f5d8 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,324 | supabase-export-v2 | ee3ae7ead634489a | def install_setuptools(self, context): """ Install setuptools in the virtual environment.
:param context: The information for the virtual environment
creation request being processed. """
url = "https://bootstrap.pypa.io/ez_setup.py"
self.install_script(context, 'setuptools', url)
# clear up the setuptools archive ... | trusted_official_docs | CPython Docs | def install_setuptools(self, context): """ Install setuptools in the virtual environment.
:param context: The information for the virtual environment
creation request being processed. """
url = "https://bootstrap.pypa.io/ez_setup.py"
self.install_script(context, 'setuptools', url)
# clear up the setuptools archive ... | def install_setuptools(self, context): """ Install setuptools in the virtual environment.
:param context: The information for the virtual environment
creation request being processed. """
url = "https://bootstrap.pypa.io/ez_setup.py"
self.install_script(context, 'setuptools', url)
# clear up the setuptools archive ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f0c44c62-49e7-402b-9013-770ee79b7992 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,249 | supabase-export-v2 | 3850cd8d16f55d6e | * *upgrade_deps* -- Update the base venv modules to the latest on PyPI
* *scm_ignore_files* -- Create ignore files based for the specified source
control managers (SCM) in the iterable. Support is defined by having a
method named ``create_{scm}_ignore_file``. The only value supported by
default is ``"git"`` via :met... | trusted_official_docs | CPython Docs | * *upgrade_deps* -- Update the base venv modules to the latest on PyPI
* *scm_ignore_files* -- Create ignore files based for the specified source
control managers (SCM) in the iterable. Support is defined by having a
method named ``create_{scm}_ignore_file``. The only value supported by
default is ``"git"`` via :met... | * *upgrade_deps* -- Update the base venv modules to the latest on PyPI
* *scm_ignore_files* -- Create ignore files based for the specified source
control managers (SCM) in the iterable. Support is defined by having a
method named ``create_{scm}_ignore_file``. The only value supported by
default is ``"git"`` via :met... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f6ece16b-11d1-42b8-b8d9-e455dca42c51 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,301 | supabase-export-v2 | 85314ff751dce4bc | .. versionadded:: 3.13
.. versionchanged:: 3.7.2
Windows now uses redirector scripts for ``python[w].exe`` instead of
copying the actual binaries. In 3.7.2 only :meth:`setup_python` does
nothing unless running from a build in the source tree. | trusted_official_docs | CPython Docs | .. versionadded:: 3.13
.. versionchanged:: 3.7.2
Windows now uses redirector scripts for ``python[w].exe`` instead of
copying the actual binaries. In 3.7.2 only :meth:`setup_python` does
nothing unless running from a build in the source tree. | .. versionadded:: 3.13
.. versionchanged:: 3.7.2
Windows now uses redirector scripts for ``python[w].exe`` instead of
copying the actual binaries. In 3.7.2 only :meth:`setup_python` does
nothing unless running from a build in the source tree. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f8fe4e7b-e4cf-4231-b3e7-2c34e3828571 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,294 | supabase-export-v2 | 6f6e5fcb9971a4cd | * ``__VENV_NAME__`` is replaced with the environment name (final path segment of environment directory).
* ``__VENV_PROMPT__`` is replaced with the prompt (the environment
name surrounded by parentheses and with a following space) | trusted_official_docs | CPython Docs | * ``__VENV_NAME__`` is replaced with the environment name (final path segment of environment directory).
* ``__VENV_PROMPT__`` is replaced with the prompt (the environment
name surrounded by parentheses and with a following space) | * ``__VENV_NAME__`` is replaced with the environment name (final path segment of environment directory).
* ``__VENV_PROMPT__`` is replaced with the prompt (the environment
name surrounded by parentheses and with a following space) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
f95b0cc8-b24e-4114-820b-f8b7dc6fe334 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,314 | supabase-export-v2 | 05e76c74cdced219 | import os import os.path from subprocess import Popen, PIPE import sys from threading import Thread from urllib.parse import urlsplit from urllib.request import urlretrieve import venv
class ExtendedEnvBuilder(venv.EnvBuilder):
"""
This builder installs setuptools and pip so that you can pip or
easy_install other pa... | trusted_official_docs | CPython Docs | import os import os.path from subprocess import Popen, PIPE import sys from threading import Thread from urllib.parse import urlsplit from urllib.request import urlretrieve import venv
class ExtendedEnvBuilder(venv.EnvBuilder):
"""
This builder installs setuptools and pip so that you can pip or
easy_install other pa... | import os import os.path from subprocess import Popen, PIPE import sys from threading import Thread from urllib.parse import urlsplit from urllib.request import urlretrieve import venv
class ExtendedEnvBuilder(venv.EnvBuilder):
"""
This builder installs setuptools and pip so that you can pip or
easy_install other pa... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fc25c4d4-0df5-4611-a600-d5937d55b7aa | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,227 | supabase-export-v2 | d62a3e2aca668c89 | How venvs work --------------
When a Python interpreter is running from a virtual environment,
:data:`sys.prefix` and :data:`sys.exec_prefix`
point to the directories of the virtual environment,
whereas :data:`sys.base_prefix` and :data:`sys.base_exec_prefix`
point to those of the base Python used to create the environ... | trusted_official_docs | CPython Docs | How venvs work --------------
When a Python interpreter is running from a virtual environment,
:data:`sys.prefix` and :data:`sys.exec_prefix`
point to the directories of the virtual environment,
whereas :data:`sys.base_prefix` and :data:`sys.base_exec_prefix`
point to those of the base Python used to create the environ... | How venvs work --------------
When a Python interpreter is running from a virtual environment,
:data:`sys.prefix` and :data:`sys.exec_prefix`
point to the directories of the virtual environment,
whereas :data:`sys.base_prefix` and :data:`sys.base_exec_prefix`
point to those of the base Python used to create the environ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
fd1f7fea-16c0-4ead-8634-6ef815bc88a4 | CPython Docs | file://datasets/cpython/Doc/library/venv.rst | unknown | eb9bf09a-8e87-4a67-96a5-b5f9ac1d2c60 | 35,320 | supabase-export-v2 | ca2d324f3e98ee8e | def post_setup(self, context): """ Set up any packages which need to be pre-installed into the virtual environment being created.
:param context: The information for the virtual environment
creation request being processed. """
os.environ['VIRTUAL_ENV'] = context.env_dir
if not self.nodist:
self.install_setuptools(... | trusted_official_docs | CPython Docs | def post_setup(self, context): """ Set up any packages which need to be pre-installed into the virtual environment being created.
:param context: The information for the virtual environment
creation request being processed. """
os.environ['VIRTUAL_ENV'] = context.env_dir
if not self.nodist:
self.install_setuptools(... | def post_setup(self, context): """ Set up any packages which need to be pre-installed into the virtual environment being created.
:param context: The information for the virtual environment
creation request being processed. """
os.environ['VIRTUAL_ENV'] = context.env_dir
if not self.nodist:
self.install_setuptools(... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
03e6da3d-1e61-4de9-8ce6-4e506e5cac15 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,547 | supabase-export-v2 | 2095a4e0babceb6b | The index Parameter ^^^^^^^^^^^^^^^^^^^
A number of widgets require "index" parameters to be passed. These are used to
point at a specific place in a Text widget, or to particular characters in an
Entry widget, or to particular menu items in a Menu widget. | trusted_official_docs | CPython Docs | The index Parameter ^^^^^^^^^^^^^^^^^^^
A number of widgets require "index" parameters to be passed. These are used to
point at a specific place in a Text widget, or to particular characters in an
Entry widget, or to particular menu items in a Menu widget. | The index Parameter ^^^^^^^^^^^^^^^^^^^
A number of widgets require "index" parameters to be passed. These are used to
point at a specific place in a Text widget, or to particular characters in an
Entry widget, or to particular menu items in a Menu widget. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
056b0214-0322-4c52-9965-a83723304dde | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,524 | supabase-export-v2 | 818ed1987df84e08 | ``"#RRGGBB"``, 12 bit: ``"#RRRGGGBBB"``, or 16 bit: ``"#RRRRGGGGBBBB"`` ranges, where R,G,B here represent any legal hex digit. See page 160 of Ousterhout's book for details.
cursor
The standard X cursor names from :file:`cursorfont.h` can be used, without the
``XC_`` prefix. For example to get a hand cursor (:const:... | trusted_official_docs | CPython Docs | ``"#RRGGBB"``, 12 bit: ``"#RRRGGGBBB"``, or 16 bit: ``"#RRRRGGGGBBBB"`` ranges, where R,G,B here represent any legal hex digit. See page 160 of Ousterhout's book for details.
cursor
The standard X cursor names from :file:`cursorfont.h` can be used, without the
``XC_`` prefix. For example to get a hand cursor (:const:... | ``"#RRGGBB"``, 12 bit: ``"#RRRGGGBBB"``, or 16 bit: ``"#RRRRGGGGBBBB"`` ranges, where R,G,B here represent any legal hex digit. See page 160 of Ousterhout's book for details.
cursor
The standard X cursor names from :file:`cursorfont.h` can be used, without the
``XC_`` prefix. For example to get a hand cursor (:const:... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
07a4b8e7-49a3-460a-b404-1749ea03fbec | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,443 | supabase-export-v2 | 775abe29c7a45d67 | destroy . grid .frm.btn -column 0 -row 0
Others, however, look more like methods called on a widget object (in fact,
when you create a widget in Tcl/Tk, it creates a Tcl command with the name
of the widget pathname, with the first parameter to that command being the
name of a method to call). | trusted_official_docs | CPython Docs | destroy . grid .frm.btn -column 0 -row 0
Others, however, look more like methods called on a widget object (in fact,
when you create a widget in Tcl/Tk, it creates a Tcl command with the name
of the widget pathname, with the first parameter to that command being the
name of a method to call). | destroy . grid .frm.btn -column 0 -row 0
Others, however, look more like methods called on a widget object (in fact,
when you create a widget in Tcl/Tk, it creates a Tcl command with the name
of the widget pathname, with the first parameter to that command being the
name of a method to call). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0824d284-499d-4ec0-85d9-1210c8817ec4 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,485 | supabase-export-v2 | f31b219bd179525d | the widget is created but nothing appears. A widget will appear only after it has had, for example, the packer's :meth:`pack` method applied to it.
The pack() method can be called with keyword-option/value pairs that control
where the widget is to appear within its container, and how it is to behave when
the main appli... | trusted_official_docs | CPython Docs | the widget is created but nothing appears. A widget will appear only after it has had, for example, the packer's :meth:`pack` method applied to it.
The pack() method can be called with keyword-option/value pairs that control
where the widget is to appear within its container, and how it is to behave when
the main appli... | the widget is created but nothing appears. A widget will appear only after it has had, for example, the packer's :meth:`pack` method applied to it.
The pack() method can be called with keyword-option/value pairs that control
where the widget is to appear within its container, and how it is to behave when
the main appli... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
098eb514-940d-4de0-9e6f-10b735432b93 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,417 | supabase-export-v2 | 556607b255d35518 | some existing code, or debugging your Tkinter application, there are times that it will be useful to understand what those underlying Tcl/Tk commands look like.
To illustrate, here is the Tcl/Tk equivalent of the main part of the Tkinter
script above. | trusted_official_docs | CPython Docs | some existing code, or debugging your Tkinter application, there are times that it will be useful to understand what those underlying Tcl/Tk commands look like.
To illustrate, here is the Tcl/Tk equivalent of the main part of the Tkinter
script above. | some existing code, or debugging your Tkinter application, there are times that it will be useful to understand what those underlying Tcl/Tk commands look like.
To illustrate, here is the Tcl/Tk equivalent of the main part of the Tkinter
script above. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
09e49119-2c03-483f-9f22-6d2a5f38657d | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,536 | supabase-export-v2 | d5388ef9ae6105fe | .. index:: single: bind (widgets) single: events (widgets)
The bind method from the widget command allows you to watch for certain events
and to have a callback function trigger when that event type occurs. The form
of the bind method is:: | trusted_official_docs | CPython Docs | .. index:: single: bind (widgets) single: events (widgets)
The bind method from the widget command allows you to watch for certain events
and to have a callback function trigger when that event type occurs. The form
of the bind method is:: | .. index:: single: bind (widgets) single: events (widgets)
The bind method from the widget command allows you to watch for certain events
and to have a callback function trigger when that event type occurs. The form
of the bind method is:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0af37a70-f9f5-40c4-9eab-6056a718f6e1 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,378 | supabase-export-v2 | d909ce9f93869af0 | X server). An object created by the :func:`Tcl` object can have a Toplevel window created (and the Tk subsystem initialized) by calling its :meth:`loadtk` method.
The modules that provide Tk support include: | trusted_official_docs | CPython Docs | X server). An object created by the :func:`Tcl` object can have a Toplevel window created (and the Tk subsystem initialized) by calling its :meth:`loadtk` method.
The modules that provide Tk support include: | X server). An object created by the :func:`Tcl` object can have a Toplevel window created (and the Tk subsystem initialized) by calling its :meth:`loadtk` method.
The modules that provide Tk support include: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
0c256f08-16af-4edd-9b71-ad9000bc5339 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,568 | supabase-export-v2 | d88f4e97926584fb | File Handlers -------------
Tk allows you to register and unregister a callback function which will be
called from the Tk mainloop when I/O is possible on a file descriptor. Only one handler may be registered per file descriptor. Example code:: | trusted_official_docs | CPython Docs | File Handlers -------------
Tk allows you to register and unregister a callback function which will be
called from the Tk mainloop when I/O is possible on a file descriptor. Only one handler may be registered per file descriptor. Example code:: | File Handlers -------------
Tk allows you to register and unregister a callback function which will be
called from the Tk mainloop when I/O is possible on a file descriptor. Only one handler may be registered per file descriptor. Example code:: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
10980b47-3522-415c-b7b5-2d86ce350d28 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,504 | supabase-export-v2 | 3f2a5baf57bfb65d | # Define a callback for when the user hits return. # It prints the current value of the variable. self.entrythingy.bind('<Key-Return>', self.print_contents)
def print_contents(self, event):
print("Hi. The current entry content is:",
self.contents.get()) | trusted_official_docs | CPython Docs | # Define a callback for when the user hits return. # It prints the current value of the variable. self.entrythingy.bind('<Key-Return>', self.print_contents)
def print_contents(self, event):
print("Hi. The current entry content is:",
self.contents.get()) | # Define a callback for when the user hits return. # It prints the current value of the variable. self.entrythingy.bind('<Key-Return>', self.print_contents)
def print_contents(self, event):
print("Hi. The current entry content is:",
self.contents.get()) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
13e5173e-444c-4d50-8509-eac186c7932a | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,398 | supabase-export-v2 | ebbe157f477699e5 | methods, and options you'll need in your Tkinter application, and where to find more detailed documentation on them, including in the official Tcl/Tk reference manual.
A Hello World Program
^^^^^^^^^^^^^^^^^^^^^ | trusted_official_docs | CPython Docs | methods, and options you'll need in your Tkinter application, and where to find more detailed documentation on them, including in the official Tcl/Tk reference manual.
A Hello World Program
^^^^^^^^^^^^^^^^^^^^^ | methods, and options you'll need in your Tkinter application, and where to find more detailed documentation on them, including in the official Tcl/Tk reference manual.
A Hello World Program
^^^^^^^^^^^^^^^^^^^^^ | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
14c1f8e8-3c48-4292-b495-a3dada75e49b | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,556 | supabase-export-v2 | 590e7af2941c1a32 | * the string ``"none"``, which indicates no menu entry at all, most often used with menu.activate() to deactivate all entries, and finally,
* a text string that is pattern matched against the label of the menu entry, as
scanned from the top of the menu to the bottom. Note that this index type is
considered after all ... | trusted_official_docs | CPython Docs | * the string ``"none"``, which indicates no menu entry at all, most often used with menu.activate() to deactivate all entries, and finally,
* a text string that is pattern matched against the label of the menu entry, as
scanned from the top of the menu to the bottom. Note that this index type is
considered after all ... | * the string ``"none"``, which indicates no menu entry at all, most often used with menu.activate() to deactivate all entries, and finally,
* a text string that is pattern matched against the label of the menu entry, as
scanned from the top of the menu to the bottom. Note that this index type is
considered after all ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
14d8231b-5186-49eb-a0ec-d39e95c4c922 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,551 | supabase-export-v2 | f582e6b5d9fdb3c0 | options and methods for menus manipulate specific menu entries. Anytime a menu index is needed for an option or a parameter, you may pass in:
* an integer which refers to the numeric position of the entry in the widget,
counted from the top, starting with 0; | trusted_official_docs | CPython Docs | options and methods for menus manipulate specific menu entries. Anytime a menu index is needed for an option or a parameter, you may pass in:
* an integer which refers to the numeric position of the entry in the widget,
counted from the top, starting with 0; | options and methods for menus manipulate specific menu entries. Anytime a menu index is needed for an option or a parameter, you may pass in:
* an integer which refers to the numeric position of the entry in the widget,
counted from the top, starting with 0; | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1869ceb3-9bee-4c7d-a82b-245ed9f03847 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,449 | supabase-export-v2 | 51f2ac3e6fb4d0d8 | find that many Tkinter methods have compound names, e.g., :func:`winfo_x`, :func:`winfo_height`, :func:`winfo_viewable`. You'd find documentation for all of these in the `winfo <https://www.tcl.tk/man/tcl8.6/TkCmd/winfo.htm>`_ man page.
.. note::
Somewhat confusingly, there are also methods on all Tkinter widgets
tha... | trusted_official_docs | CPython Docs | find that many Tkinter methods have compound names, e.g., :func:`winfo_x`, :func:`winfo_height`, :func:`winfo_viewable`. You'd find documentation for all of these in the `winfo <https://www.tcl.tk/man/tcl8.6/TkCmd/winfo.htm>`_ man page.
.. note::
Somewhat confusingly, there are also methods on all Tkinter widgets
tha... | find that many Tkinter methods have compound names, e.g., :func:`winfo_x`, :func:`winfo_height`, :func:`winfo_viewable`. You'd find documentation for all of these in the `winfo <https://www.tcl.tk/man/tcl8.6/TkCmd/winfo.htm>`_ man page.
.. note::
Somewhat confusingly, there are also methods on all Tkinter widgets
tha... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
192a19b9-1821-4921-b6db-03b277d3a523 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,354 | supabase-export-v2 | 4d2f25a60f3aa895 | Architecture ------------
Tcl/Tk is not a single library but rather consists of a few distinct
modules, each with separate functionality and its own official
documentation. Python's binary releases also ship an add-on module
together with it. | trusted_official_docs | CPython Docs | Architecture ------------
Tcl/Tk is not a single library but rather consists of a few distinct
modules, each with separate functionality and its own official
documentation. Python's binary releases also ship an add-on module
together with it. | Architecture ------------
Tcl/Tk is not a single library but rather consists of a few distinct
modules, each with separate functionality and its own official
documentation. Python's binary releases also ship an add-on module
together with it. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1a652199-cbe4-4bc6-acd1-890476f5809e | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,498 | supabase-export-v2 | 13a21af23948e16f | or ``textvariable`` option. The only kinds of variables for which this works are variables that are subclassed from a class called Variable, defined in :mod:`!tkinter`.
There are many useful subclasses of Variable already defined:
:class:`StringVar`, :class:`IntVar`, :class:`DoubleVar`, and
:class:`BooleanVar`. To read... | trusted_official_docs | CPython Docs | or ``textvariable`` option. The only kinds of variables for which this works are variables that are subclassed from a class called Variable, defined in :mod:`!tkinter`.
There are many useful subclasses of Variable already defined:
:class:`StringVar`, :class:`IntVar`, :class:`DoubleVar`, and
:class:`BooleanVar`. To read... | or ``textvariable`` option. The only kinds of variables for which this works are variables that are subclassed from a class called Variable, defined in :mod:`!tkinter`.
There are many useful subclasses of Variable already defined:
:class:`StringVar`, :class:`IntVar`, :class:`DoubleVar`, and
:class:`BooleanVar`. To read... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1ac6910e-c287-49fa-9167-06eed8b4f9fc | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,368 | supabase-export-v2 | e03638fb0074b604 | in the same way as the value for the -use option for toplevel widgets (that is, it has a form like that returned by :meth:`winfo_id`).
Note that on some platforms this will only work correctly if *id* refers
to a Tk frame or toplevel that has its -container option enabled. | trusted_official_docs | CPython Docs | in the same way as the value for the -use option for toplevel widgets (that is, it has a form like that returned by :meth:`winfo_id`).
Note that on some platforms this will only work correctly if *id* refers
to a Tk frame or toplevel that has its -container option enabled. | in the same way as the value for the -use option for toplevel widgets (that is, it has a form like that returned by :meth:`winfo_id`).
Note that on some platforms this will only work correctly if *id* refers
to a Tk frame or toplevel that has its -container option enabled. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1be0c34c-9e55-49b7-b505-5b0e95157da6 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,428 | supabase-export-v2 | fc82ba7910fbe979 | in Tkinter, and you can't immediately find it in the tutorial or reference documentation you're using, there are a few strategies that can be helpful.
First, remember that the details of how individual widgets work may vary
across different versions of both Tkinter and Tcl/Tk. If you're searching
documentation, make su... | trusted_official_docs | CPython Docs | in Tkinter, and you can't immediately find it in the tutorial or reference documentation you're using, there are a few strategies that can be helpful.
First, remember that the details of how individual widgets work may vary
across different versions of both Tkinter and Tcl/Tk. If you're searching
documentation, make su... | in Tkinter, and you can't immediately find it in the tutorial or reference documentation you're using, there are a few strategies that can be helpful.
First, remember that the details of how individual widgets work may vary
across different versions of both Tkinter and Tcl/Tk. If you're searching
documentation, make su... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1ce29a63-5a91-40ac-a88d-85fe2c367e02 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,373 | supabase-export-v2 | 218f8dd56334ba72 | .. attribute:: master
The widget object that contains this widget. For :class:`Tk`, the
:attr:`!master` is :const:`None` because it is the main window. The terms
*master* and *parent* are similar and sometimes used interchangeably
as argument names; however, calling :meth:`winfo_parent` returns a
string of the widg... | trusted_official_docs | CPython Docs | .. attribute:: master
The widget object that contains this widget. For :class:`Tk`, the
:attr:`!master` is :const:`None` because it is the main window. The terms
*master* and *parent* are similar and sometimes used interchangeably
as argument names; however, calling :meth:`winfo_parent` returns a
string of the widg... | .. attribute:: master
The widget object that contains this widget. For :class:`Tk`, the
:attr:`!master` is :const:`None` because it is the main window. The terms
*master* and *parent* are similar and sometimes used interchangeably
as argument names; however, calling :meth:`winfo_parent` returns a
string of the widg... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1e29943c-6b03-4afb-8386-ddd0ae36880f | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,356 | supabase-export-v2 | 2d403bb2e4c02d57 | to it and process them. Unlike Python, Tcl's execution model is designed around cooperative multitasking, and Tkinter bridges this difference (see `Threading model`_ for details).
Tk
Tk is a `Tcl package <https://wiki.tcl-lang.org/37432>`_ implemented in C
that adds custom commands to create and manipulate GUI widget... | trusted_official_docs | CPython Docs | to it and process them. Unlike Python, Tcl's execution model is designed around cooperative multitasking, and Tkinter bridges this difference (see `Threading model`_ for details).
Tk
Tk is a `Tcl package <https://wiki.tcl-lang.org/37432>`_ implemented in C
that adds custom commands to create and manipulate GUI widget... | to it and process them. Unlike Python, Tcl's execution model is designed around cooperative multitasking, and Tkinter bridges this difference (see `Threading model`_ for details).
Tk
Tk is a `Tcl package <https://wiki.tcl-lang.org/37432>`_ implemented in C
that adds custom commands to create and manipulate GUI widget... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
1f4b54e9-eddd-4490-b843-6b5ee2b7473f | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,448 | supabase-export-v2 | 0478cbbdd176b009 | options and methods in the `options <https://www.tcl.tk/man/tcl8.6/TkCmd/options.htm>`_ or `ttk::widget <https://www.tcl.tk/man/tcl8.6/TkCmd/ttk_widget.htm>`_ man pages, while others are found in the man page for a specific widget class.
You'll also find that many Tkinter methods have compound names, e.g.,
:func:`winfo... | trusted_official_docs | CPython Docs | options and methods in the `options <https://www.tcl.tk/man/tcl8.6/TkCmd/options.htm>`_ or `ttk::widget <https://www.tcl.tk/man/tcl8.6/TkCmd/ttk_widget.htm>`_ man pages, while others are found in the man page for a specific widget class.
You'll also find that many Tkinter methods have compound names, e.g.,
:func:`winfo... | options and methods in the `options <https://www.tcl.tk/man/tcl8.6/TkCmd/options.htm>`_ or `ttk::widget <https://www.tcl.tk/man/tcl8.6/TkCmd/ttk_widget.htm>`_ man pages, while others are found in the man page for a specific widget class.
You'll also find that many Tkinter methods have compound names, e.g.,
:func:`winfo... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
20a02551-9696-4149-bfd8-4de658840384 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,523 | supabase-export-v2 | c27a115fdec3d11a | def print_it(): print("hi there") fred["command"] = print_it
color
Colors can be given as the names of X colors in the rgb.txt file, or as strings
representing RGB values in 4 bit: ``"#RGB"``, 8 bit: ``"#RRGGBB"``, 12 bit:
``"#RRRGGGBBB"``, or 16 bit: ``"#RRRRGGGGBBBB"`` ranges, where R,G,B here
represent any legal... | trusted_official_docs | CPython Docs | def print_it(): print("hi there") fred["command"] = print_it
color
Colors can be given as the names of X colors in the rgb.txt file, or as strings
representing RGB values in 4 bit: ``"#RGB"``, 8 bit: ``"#RRGGBB"``, 12 bit:
``"#RRRGGGBBB"``, or 16 bit: ``"#RRRRGGGGBBBB"`` ranges, where R,G,B here
represent any legal... | def print_it(): print("hi there") fred["command"] = print_it
color
Colors can be given as the names of X colors in the rgb.txt file, or as strings
representing RGB values in 4 bit: ``"#RGB"``, 8 bit: ``"#RRGGBB"``, 12 bit:
``"#RRRGGGBBB"``, or 16 bit: ``"#RRRRGGGGBBBB"`` ranges, where R,G,B here
represent any legal... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
22bc744c-f398-4cf7-b709-b92b0d2fc7f5 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,569 | supabase-export-v2 | 30f0993bdb23a8ee | be called from the Tk mainloop when I/O is possible on a file descriptor. Only one handler may be registered per file descriptor. Example code::
import tkinter
widget = tkinter.Tk()
mask = tkinter.READABLE | tkinter.WRITABLE
widget.tk.createfilehandler(file, mask, callback)
... widget.tk.deletefilehandler(file) | trusted_official_docs | CPython Docs | be called from the Tk mainloop when I/O is possible on a file descriptor. Only one handler may be registered per file descriptor. Example code::
import tkinter
widget = tkinter.Tk()
mask = tkinter.READABLE | tkinter.WRITABLE
widget.tk.createfilehandler(file, mask, callback)
... widget.tk.deletefilehandler(file) | be called from the Tk mainloop when I/O is possible on a file descriptor. Only one handler may be registered per file descriptor. Example code::
import tkinter
widget = tkinter.Tk()
mask = tkinter.READABLE | tkinter.WRITABLE
widget.tk.createfilehandler(file, mask, callback)
... widget.tk.deletefilehandler(file) | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
23ca6691-bd3e-4a4a-bc25-eba814a5e25a | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,526 | supabase-export-v2 | d5f001a0f711b322 | trailing character denoting units: ``c`` for centimetres, ``i`` for inches, ``m`` for millimetres, ``p`` for printer's points. For example, 3.5 inches is expressed as ``"3.5i"``.
font
Tk uses a list font name format, such as ``{courier 10 bold}``. Font sizes with
positive numbers are measured in points; sizes with ne... | trusted_official_docs | CPython Docs | trailing character denoting units: ``c`` for centimetres, ``i`` for inches, ``m`` for millimetres, ``p`` for printer's points. For example, 3.5 inches is expressed as ``"3.5i"``.
font
Tk uses a list font name format, such as ``{courier 10 bold}``. Font sizes with
positive numbers are measured in points; sizes with ne... | trailing character denoting units: ``c`` for centimetres, ``i`` for inches, ``m`` for millimetres, ``p`` for printer's points. For example, 3.5 inches is expressed as ``"3.5i"``.
font
Tk uses a list font name format, such as ``{courier 10 bold}``. Font sizes with
positive numbers are measured in points; sizes with ne... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
283be7f0-c3d2-4a28-bc17-3cf93feeae17 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,554 | supabase-export-v2 | ba02e63050687f5d | * the string ``"last"`` which refers to the last menu item;
* An integer preceded by ``@``, as in ``@6``, where the integer is interpreted
as a y pixel coordinate in the menu's coordinate system; | trusted_official_docs | CPython Docs | * the string ``"last"`` which refers to the last menu item;
* An integer preceded by ``@``, as in ``@6``, where the integer is interpreted
as a y pixel coordinate in the menu's coordinate system; | * the string ``"last"`` which refers to the last menu item;
* An integer preceded by ``@``, as in ``@6``, where the integer is interpreted
as a y pixel coordinate in the menu's coordinate system; | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
285dc461-12fc-4a59-b4ed-ce23d3f42a28 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,493 | supabase-export-v2 | 150108d3caccb246 | ipadx and ipady A distance - designating internal padding on each side of the content.
padx and pady
A distance - designating external padding on each side of the content. | trusted_official_docs | CPython Docs | ipadx and ipady A distance - designating internal padding on each side of the content.
padx and pady
A distance - designating external padding on each side of the content. | ipadx and ipady A distance - designating internal padding on each side of the content.
padx and pady
A distance - designating external padding on each side of the content. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
29404dd6-5db8-4eda-bc7c-daa59dc0b673 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,402 | supabase-export-v2 | 4a6a41a5ada6e1a0 | from tkinter import * from tkinter import ttk root = Tk() frm = ttk.Frame(root, padding=10) frm.grid() ttk.Label(frm, text="Hello World!").grid(column=0, row=0) ttk.Button(frm, text="Quit", command=root.destroy).grid(column=1, row=0) root.mainloop()
After the imports, the next line creates an instance of the :class:`Tk... | trusted_official_docs | CPython Docs | from tkinter import * from tkinter import ttk root = Tk() frm = ttk.Frame(root, padding=10) frm.grid() ttk.Label(frm, text="Hello World!").grid(column=0, row=0) ttk.Button(frm, text="Quit", command=root.destroy).grid(column=1, row=0) root.mainloop()
After the imports, the next line creates an instance of the :class:`Tk... | from tkinter import * from tkinter import ttk root = Tk() frm = ttk.Frame(root, padding=10) frm.grid() ttk.Label(frm, text="Hello World!").grid(column=0, row=0) ttk.Button(frm, text="Quit", command=root.destroy).grid(column=1, row=0) root.mainloop()
After the imports, the next line creates an instance of the :class:`Tk... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
2b782198-4f94-47ac-b444-b678b85b89d1 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,529 | supabase-export-v2 | 8eb7fb1acdc8dddd | justify Legal values are the strings: ``"left"``, ``"center"``, and ``"right"``.
region
This is a string with four space-delimited elements, each of which is a legal
distance (see above). For example: ``"2 3 4 5"`` and ``"3i 2i 4.5i 2i"`` and
``"3c 2c 4c 10.43c"`` are all legal regions. | trusted_official_docs | CPython Docs | justify Legal values are the strings: ``"left"``, ``"center"``, and ``"right"``.
region
This is a string with four space-delimited elements, each of which is a legal
distance (see above). For example: ``"2 3 4 5"`` and ``"3i 2i 4.5i 2i"`` and
``"3c 2c 4c 10.43c"`` are all legal regions. | justify Legal values are the strings: ``"left"``, ``"center"``, and ``"right"``.
region
This is a string with four space-delimited elements, each of which is a legal
distance (see above). For example: ``"2 3 4 5"`` and ``"3i 2i 4.5i 2i"`` and
``"3c 2c 4c 10.43c"`` are all legal regions. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
30814c97-9063-455d-a41d-293c0386cba5 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,447 | supabase-export-v2 | b08b6f0fedf6fa1b | method on the `ttk::button <https://www.tcl.tk/man/tcl8.6/TkCmd/ttk_button.htm>`_ man page), while functions that take a widget as a parameter often have their own man page (e.g., `grid <https://www.tcl.tk/man/tcl8.6/TkCmd/grid.htm>`_).
You'll find many common options and methods in the
`options <https://www.tcl.tk/man... | trusted_official_docs | CPython Docs | method on the `ttk::button <https://www.tcl.tk/man/tcl8.6/TkCmd/ttk_button.htm>`_ man page), while functions that take a widget as a parameter often have their own man page (e.g., `grid <https://www.tcl.tk/man/tcl8.6/TkCmd/grid.htm>`_).
You'll find many common options and methods in the
`options <https://www.tcl.tk/man... | method on the `ttk::button <https://www.tcl.tk/man/tcl8.6/TkCmd/ttk_button.htm>`_ man page), while functions that take a widget as a parameter often have their own man page (e.g., `grid <https://www.tcl.tk/man/tcl8.6/TkCmd/grid.htm>`_).
You'll find many common options and methods in the
`options <https://www.tcl.tk/man... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3125359c-d9a1-4376-a423-2c9ad3ef9624 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,366 | supabase-export-v2 | 532b0645da2f6bf6 | The :class:`Tk` class is typically instantiated using all default values. However, the following keyword arguments are currently recognized:
*screenName*
When given (as a string), sets the :envvar:`DISPLAY` environment
variable. (X11 only)
*baseName*
Name of the profile file. By default, *baseName* is derived from ... | trusted_official_docs | CPython Docs | The :class:`Tk` class is typically instantiated using all default values. However, the following keyword arguments are currently recognized:
*screenName*
When given (as a string), sets the :envvar:`DISPLAY` environment
variable. (X11 only)
*baseName*
Name of the profile file. By default, *baseName* is derived from ... | The :class:`Tk` class is typically instantiated using all default values. However, the following keyword arguments are currently recognized:
*screenName*
When given (as a string), sets the :envvar:`DISPLAY` environment
variable. (X11 only)
*baseName*
Name of the profile file. By default, *baseName* is derived from ... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
31589654-9cd5-4535-94b7-818afbb6d3e5 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,436 | supabase-export-v2 | c87442ced7d49516 | print(set(btn.configure().keys()) - set(frm.configure().keys()))
Similarly, you can find the available methods for a widget object using the
standard :func:`dir` function. If you try it, you'll see there are over 200
common widget methods, so again identifying those specific to a widget class
is helpful. | trusted_official_docs | CPython Docs | print(set(btn.configure().keys()) - set(frm.configure().keys()))
Similarly, you can find the available methods for a widget object using the
standard :func:`dir` function. If you try it, you'll see there are over 200
common widget methods, so again identifying those specific to a widget class
is helpful. | print(set(btn.configure().keys()) - set(frm.configure().keys()))
Similarly, you can find the available methods for a widget object using the
standard :func:`dir` function. If you try it, you'll see there are over 200
common widget methods, so again identifying those specific to a widget class
is helpful. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
31ca522c-ee20-456e-985e-ee57248df275 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,509 | supabase-export-v2 | add5213aff302d4f | have been implemented as methods on the :class:`Wm` class. Toplevel widgets are subclassed from the :class:`Wm` class, and so can call the :class:`Wm` methods directly.
To get at the toplevel window that contains a given widget, you can often just
refer to the widget's :attr:`master`. Of course if the widget has been p... | trusted_official_docs | CPython Docs | have been implemented as methods on the :class:`Wm` class. Toplevel widgets are subclassed from the :class:`Wm` class, and so can call the :class:`Wm` methods directly.
To get at the toplevel window that contains a given widget, you can often just
refer to the widget's :attr:`master`. Of course if the widget has been p... | have been implemented as methods on the :class:`Wm` class. Toplevel widgets are subclassed from the :class:`Wm` class, and so can call the :class:`Wm` methods directly.
To get at the toplevel window that contains a given widget, you can often just
refer to the widget's :attr:`master`. Of course if the widget has been p... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
37e67cec-ffe0-4772-86c2-0350ebf1fd26 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,410 | supabase-export-v2 | 962520d8fb7b4eea | Tkinter user interface is made up of individual *widgets*. Each widget is represented as a Python object, instantiated from classes like :class:`ttk.Frame`, :class:`ttk.Label`, and :class:`ttk.Button`.
widget hierarchy
Widgets are arranged in a *hierarchy*. The label and button were contained
within a frame, which in... | trusted_official_docs | CPython Docs | Tkinter user interface is made up of individual *widgets*. Each widget is represented as a Python object, instantiated from classes like :class:`ttk.Frame`, :class:`ttk.Label`, and :class:`ttk.Button`.
widget hierarchy
Widgets are arranged in a *hierarchy*. The label and button were contained
within a frame, which in... | Tkinter user interface is made up of individual *widgets*. Each widget is represented as a Python object, instantiated from classes like :class:`ttk.Frame`, :class:`ttk.Label`, and :class:`ttk.Button`.
widget hierarchy
Widgets are arranged in a *hierarchy*. The label and button were contained
within a frame, which in... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
39436a42-b264-4b5e-b72a-2e44d814452a | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,426 | supabase-export-v2 | 732b0706750c9180 | see shortly, at other times Tcl uses what appear to be method calls on widget objects, which more closely mirror what is used in Tkinter.
How do I...? What option does...? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | trusted_official_docs | CPython Docs | see shortly, at other times Tcl uses what appear to be method calls on widget objects, which more closely mirror what is used in Tkinter.
How do I...? What option does...? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | see shortly, at other times Tcl uses what appear to be method calls on widget objects, which more closely mirror what is used in Tkinter.
How do I...? What option does...? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3ab57820-3cea-41cd-b5d8-3c67e0bc09a1 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,430 | supabase-export-v2 | 9fc3859f3da7a61d | the class, option, or method that you're using. Introspection, either in an interactive Python shell or with :func:`print`, can help you identify what you need.
To find out what configuration options are available on any widget, call its
:meth:`configure` method, which returns a dictionary containing a variety of
infor... | trusted_official_docs | CPython Docs | the class, option, or method that you're using. Introspection, either in an interactive Python shell or with :func:`print`, can help you identify what you need.
To find out what configuration options are available on any widget, call its
:meth:`configure` method, which returns a dictionary containing a variety of
infor... | the class, option, or method that you're using. Introspection, either in an interactive Python shell or with :func:`print`, can help you identify what you need.
To find out what configuration options are available on any widget, call its
:meth:`configure` method, which returns a dictionary containing a variety of
infor... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3ba3bd49-6fc6-4421-b409-909f653393a9 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,338 | supabase-export-v2 | a1a5fefcaecc587f | thread support. The official Python binary release bundles Tcl/Tk 8.6 threaded. See the source code for the :mod:`_tkinter` module for more information about supported versions.
Tkinter is not a thin wrapper, but adds a fair amount of its own logic to
make the experience more pythonic. This documentation will concentra... | trusted_official_docs | CPython Docs | thread support. The official Python binary release bundles Tcl/Tk 8.6 threaded. See the source code for the :mod:`_tkinter` module for more information about supported versions.
Tkinter is not a thin wrapper, but adds a fair amount of its own logic to
make the experience more pythonic. This documentation will concentra... | thread support. The official Python binary release bundles Tcl/Tk 8.6 threaded. See the source code for the :mod:`_tkinter` module for more information about supported versions.
Tkinter is not a thin wrapper, but adds a fair amount of its own logic to
make the experience more pythonic. This documentation will concentra... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3bab7400-b05f-4bcf-b794-35081f1f8ad2 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,527 | supabase-export-v2 | 7a7c6bcaf6d5f9fb | font name format, such as ``{courier 10 bold}``. Font sizes with positive numbers are measured in points; sizes with negative numbers are measured in pixels.
geometry
This is a string of the form ``widthxheight``, where width and height are
measured in pixels for most widgets (in characters for widgets displaying tex... | trusted_official_docs | CPython Docs | font name format, such as ``{courier 10 bold}``. Font sizes with positive numbers are measured in points; sizes with negative numbers are measured in pixels.
geometry
This is a string of the form ``widthxheight``, where width and height are
measured in pixels for most widgets (in characters for widgets displaying tex... | font name format, such as ``{courier 10 bold}``. Font sizes with positive numbers are measured in points; sizes with negative numbers are measured in pixels.
geometry
This is a string of the form ``widthxheight``, where width and height are
measured in pixels for most widgets (in characters for widgets displaying tex... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3bcba152-d7ba-4e81-b035-3d7cf07efc21 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,367 | supabase-export-v2 | c43bf5eee03714fb | (X11 only) *use* Specifies the *id* of the window in which to embed the application, instead of it being created as an independent toplevel window.
*id* must
be specified in the same way as the value for the -use option for
toplevel widgets (that is, it has a form like that returned by
:meth:`winfo_id`). | trusted_official_docs | CPython Docs | (X11 only) *use* Specifies the *id* of the window in which to embed the application, instead of it being created as an independent toplevel window.
*id* must
be specified in the same way as the value for the -use option for
toplevel widgets (that is, it has a form like that returned by
:meth:`winfo_id`). | (X11 only) *use* Specifies the *id* of the window in which to embed the application, instead of it being created as an independent toplevel window.
*id* must
be specified in the same way as the value for the -use option for
toplevel widgets (that is, it has a form like that returned by
:meth:`winfo_id`). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
3bfea862-d749-4a0e-8bd9-4f76d72f9142 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,483 | supabase-export-v2 | b3d4847b03550002 | takes qualitative relationship specification - *above*, *to the left of*, *filling*, etc - and works everything out to determine the exact placement coordinates for you.
The size of any container widget is determined by the size of the "content widgets"
inside. The packer is used to control where content widgets appear... | trusted_official_docs | CPython Docs | takes qualitative relationship specification - *above*, *to the left of*, *filling*, etc - and works everything out to determine the exact placement coordinates for you.
The size of any container widget is determined by the size of the "content widgets"
inside. The packer is used to control where content widgets appear... | takes qualitative relationship specification - *above*, *to the left of*, *filling*, etc - and works everything out to determine the exact placement coordinates for you.
The size of any container widget is determined by the size of the "content widgets"
inside. The packer is used to control where content widgets appear... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
429f98fb-772e-464a-93a0-a5e224f3e50a | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,530 | supabase-export-v2 | 8f2dbb812670ef6f | a legal distance (see above). For example: ``"2 3 4 5"`` and ``"3i 2i 4.5i 2i"`` and ``"3c 2c 4c 10.43c"`` are all legal regions.
relief
Determines what the border style of a widget will be. Legal values are:
``"raised"``, ``"sunken"``, ``"flat"``, ``"groove"``, and ``"ridge"``. | trusted_official_docs | CPython Docs | a legal distance (see above). For example: ``"2 3 4 5"`` and ``"3i 2i 4.5i 2i"`` and ``"3c 2c 4c 10.43c"`` are all legal regions.
relief
Determines what the border style of a widget will be. Legal values are:
``"raised"``, ``"sunken"``, ``"flat"``, ``"groove"``, and ``"ridge"``. | a legal distance (see above). For example: ``"2 3 4 5"`` and ``"3i 2i 4.5i 2i"`` and ``"3c 2c 4c 10.43c"`` are all legal regions.
relief
Determines what the border style of a widget will be. Legal values are:
``"raised"``, ``"sunken"``, ``"flat"``, ``"groove"``, and ``"ridge"``. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
42bfe3bc-9873-4345-bfc4-6e581b74e79b | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,371 | supabase-export-v2 | 31142caef2b582fe | .. attribute:: tk
The Tk application object created by instantiating :class:`Tk`. This
provides access to the Tcl interpreter. Each widget that is attached
the same instance of :class:`Tk` has the same value for its :attr:`tk`
attribute. | trusted_official_docs | CPython Docs | .. attribute:: tk
The Tk application object created by instantiating :class:`Tk`. This
provides access to the Tcl interpreter. Each widget that is attached
the same instance of :class:`Tk` has the same value for its :attr:`tk`
attribute. | .. attribute:: tk
The Tk application object created by instantiating :class:`Tk`. This
provides access to the Tcl interpreter. Each widget that is attached
the same instance of :class:`Tk` has the same value for its :attr:`tk`
attribute. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
44f3fd30-1a34-45fc-b05c-61a2e4fe015e | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,409 | supabase-export-v2 | acf83e7bf89ce1bd | Even this simple program illustrates the following key Tk concepts:
widgets
A Tkinter user interface is made up of individual *widgets*. Each widget is
represented as a Python object, instantiated from classes like
:class:`ttk.Frame`, :class:`ttk.Label`, and :class:`ttk.Button`. | trusted_official_docs | CPython Docs | Even this simple program illustrates the following key Tk concepts:
widgets
A Tkinter user interface is made up of individual *widgets*. Each widget is
represented as a Python object, instantiated from classes like
:class:`ttk.Frame`, :class:`ttk.Label`, and :class:`ttk.Button`. | Even this simple program illustrates the following key Tk concepts:
widgets
A Tkinter user interface is made up of individual *widgets*. Each widget is
represented as a Python object, instantiated from classes like
:class:`ttk.Frame`, :class:`ttk.Label`, and :class:`ttk.Button`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
49d741e0-c9d6-455b-a65c-c8031fe21b40 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,413 | supabase-export-v2 | e718d25a8320a93e | aren't automatically added to the user interface when they are created. A *geometry manager* like ``grid`` controls where in the user interface they are placed.
event loop
Tkinter reacts to user input, changes from your program, and even refreshes
the display only when actively running an *event loop*. If your progra... | trusted_official_docs | CPython Docs | aren't automatically added to the user interface when they are created. A *geometry manager* like ``grid`` controls where in the user interface they are placed.
event loop
Tkinter reacts to user input, changes from your program, and even refreshes
the display only when actively running an *event loop*. If your progra... | aren't automatically added to the user interface when they are created. A *geometry manager* like ``grid`` controls where in the user interface they are placed.
event loop
Tkinter reacts to user input, changes from your program, and even refreshes
the display only when actively running an *event loop*. If your progra... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4a473971-dbfd-43ab-bf56-cdf397386003 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,525 | supabase-export-v2 | fe896f86707f22f7 | hand cursor (:const:`XC_hand2`), use the string ``"hand2"``. You can also specify a bitmap and mask file of your own. See page 179 of Ousterhout's book.
distance
Screen distances can be specified in either pixels or absolute distances. Pixels are given as numbers and absolute distances as strings, with the trailing
c... | trusted_official_docs | CPython Docs | hand cursor (:const:`XC_hand2`), use the string ``"hand2"``. You can also specify a bitmap and mask file of your own. See page 179 of Ousterhout's book.
distance
Screen distances can be specified in either pixels or absolute distances. Pixels are given as numbers and absolute distances as strings, with the trailing
c... | hand cursor (:const:`XC_hand2`), use the string ``"hand2"``. You can also specify a bitmap and mask file of your own. See page 179 of Ousterhout's book.
distance
Screen distances can be specified in either pixels or absolute distances. Pixels are given as numbers and absolute distances as strings, with the trailing
c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4a80596c-fc7d-46f2-b950-3b1016d4d07a | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,396 | supabase-export-v2 | ca710a7cb0e12486 | Tkinter Life Preserver ----------------------
This section is not designed to be an exhaustive tutorial on either Tk or
Tkinter. For that, refer to one of the external resources noted earlier. Instead, this section provides a very quick orientation to what a Tkinter
application looks like, identifies foundational Tk co... | trusted_official_docs | CPython Docs | Tkinter Life Preserver ----------------------
This section is not designed to be an exhaustive tutorial on either Tk or
Tkinter. For that, refer to one of the external resources noted earlier. Instead, this section provides a very quick orientation to what a Tkinter
application looks like, identifies foundational Tk co... | Tkinter Life Preserver ----------------------
This section is not designed to be an exhaustive tutorial on either Tk or
Tkinter. For that, refer to one of the external resources noted earlier. Instead, this section provides a very quick orientation to what a Tkinter
application looks like, identifies foundational Tk co... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4b7c7245-554a-4180-8bd0-371ea33bd693 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,538 | supabase-export-v2 | 259f69a4157213b0 | where:
sequence
is a string that denotes the target kind of event. (See the
:manpage:`bind(3tk)` man page, and page 201 of John Ousterhout's book,
:title-reference:`Tcl and the Tk Toolkit (2nd edition)`, for details). | trusted_official_docs | CPython Docs | where:
sequence
is a string that denotes the target kind of event. (See the
:manpage:`bind(3tk)` man page, and page 201 of John Ousterhout's book,
:title-reference:`Tcl and the Tk Toolkit (2nd edition)`, for details). | where:
sequence
is a string that denotes the target kind of event. (See the
:manpage:`bind(3tk)` man page, and page 201 of John Ousterhout's book,
:title-reference:`Tcl and the Tk Toolkit (2nd edition)`, for details). | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4bc8c171-bb25-4db8-82f6-30e3e40aab96 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,474 | supabase-export-v2 | c8a30ffd66c38770 | widgets. Whether a given widget responds to a particular option depends on the class of the widget; buttons have a ``command`` option, labels do not.
The options supported by a given widget are listed in that widget's man page, or
can be queried at runtime by calling the :meth:`config` method without
arguments, or by c... | trusted_official_docs | CPython Docs | widgets. Whether a given widget responds to a particular option depends on the class of the widget; buttons have a ``command`` option, labels do not.
The options supported by a given widget are listed in that widget's man page, or
can be queried at runtime by calling the :meth:`config` method without
arguments, or by c... | widgets. Whether a given widget responds to a particular option depends on the class of the widget; buttons have a ``command`` option, labels do not.
The options supported by a given widget are listed in that widget's man page, or
can be queried at runtime by calling the :meth:`config` method without
arguments, or by c... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4bc9cc99-709f-47d8-a08c-25b3aa42b0c8 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,453 | supabase-export-v2 | f371f40a0f64b60a | it. Threads can also create more than one interpreter instance, though each interpreter instance can be used only by the one thread that created it.
Each :class:`Tk` object created by :mod:`!tkinter` contains a Tcl interpreter. It also keeps track of which thread created that interpreter. Calls to
:mod:`!tkinter` can b... | trusted_official_docs | CPython Docs | it. Threads can also create more than one interpreter instance, though each interpreter instance can be used only by the one thread that created it.
Each :class:`Tk` object created by :mod:`!tkinter` contains a Tcl interpreter. It also keeps track of which thread created that interpreter. Calls to
:mod:`!tkinter` can b... | it. Threads can also create more than one interpreter instance, though each interpreter instance can be used only by the one thread that created it.
Each :class:`Tk` object created by :mod:`!tkinter` contains a Tcl interpreter. It also keeps track of which thread created that interpreter. Calls to
:mod:`!tkinter` can b... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4dfe1c48-0e91-49e1-9e57-929d9ee659b8 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,497 | supabase-export-v2 | 6b205fb19fb53d01 | This connection works both ways: if the variable changes for any reason, the widget it's connected to will be updated to reflect the new value.
Unfortunately, in the current implementation of :mod:`!tkinter` it is not
possible to hand over an arbitrary Python variable to a widget through a
``variable`` or ``textvariabl... | trusted_official_docs | CPython Docs | This connection works both ways: if the variable changes for any reason, the widget it's connected to will be updated to reflect the new value.
Unfortunately, in the current implementation of :mod:`!tkinter` it is not
possible to hand over an arbitrary Python variable to a widget through a
``variable`` or ``textvariabl... | This connection works both ways: if the variable changes for any reason, the widget it's connected to will be updated to reflect the new value.
Unfortunately, in the current implementation of :mod:`!tkinter` it is not
possible to hand over an arbitrary Python variable to a widget through a
``variable`` or ``textvariabl... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
4f48e19c-50b6-483a-9807-8cce01e3adcc | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,391 | supabase-export-v2 | 67e7b495f94e19fb | used directly by application programmers. It is usually a shared library (or DLL), but might in some cases be statically linked with the Python interpreter.
:mod:`idlelib`
Python's Integrated Development and Learning Environment (IDLE). Based
on :mod:`!tkinter`. | trusted_official_docs | CPython Docs | used directly by application programmers. It is usually a shared library (or DLL), but might in some cases be statically linked with the Python interpreter.
:mod:`idlelib`
Python's Integrated Development and Learning Environment (IDLE). Based
on :mod:`!tkinter`. | used directly by application programmers. It is usually a shared library (or DLL), but might in some cases be statically linked with the Python interpreter.
:mod:`idlelib`
Python's Integrated Development and Learning Environment (IDLE). Based
on :mod:`!tkinter`. | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5023bd59-f688-43f6-81c5-084c6a34f193 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,472 | supabase-export-v2 | cdbc88db3e9e0f46 | For a complete explanation of a given option and its behavior, see the Tk man pages for the widget in question.
Note that the man pages list "STANDARD OPTIONS" and "WIDGET SPECIFIC OPTIONS"
for each widget. The former is a list of options that are common to many
widgets, the latter are the options that are idiosyncrati... | trusted_official_docs | CPython Docs | For a complete explanation of a given option and its behavior, see the Tk man pages for the widget in question.
Note that the man pages list "STANDARD OPTIONS" and "WIDGET SPECIFIC OPTIONS"
for each widget. The former is a list of options that are common to many
widgets, the latter are the options that are idiosyncrati... | For a complete explanation of a given option and its behavior, see the Tk man pages for the widget in question.
Note that the man pages list "STANDARD OPTIONS" and "WIDGET SPECIFIC OPTIONS"
for each widget. The former is a list of options that are common to many
widgets, the latter are the options that are idiosyncrati... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
50f5991a-d02f-4ea9-b047-8444471a7a75 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,548 | supabase-export-v2 | 16aeffd1fad7534c | at a specific place in a Text widget, or to particular characters in an Entry widget, or to particular menu items in a Menu widget.
Entry widget indexes (index, view index, etc.)
Entry widgets have options that refer to character positions in the text being
displayed. You can use these :mod:`!tkinter` functions to ac... | trusted_official_docs | CPython Docs | at a specific place in a Text widget, or to particular characters in an Entry widget, or to particular menu items in a Menu widget.
Entry widget indexes (index, view index, etc.)
Entry widgets have options that refer to character positions in the text being
displayed. You can use these :mod:`!tkinter` functions to ac... | at a specific place in a Text widget, or to particular characters in an Entry widget, or to particular menu items in a Menu widget.
Entry widget indexes (index, view index, etc.)
Entry widgets have options that refer to character positions in the text being
displayed. You can use these :mod:`!tkinter` functions to ac... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
52f7577b-7869-4ce3-b730-584db166e131 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,562 | supabase-export-v2 | e2f2be20c2c74823 | Either type of image is created through either the ``file`` or the ``data`` option (other options are available as well).
.. versionchanged:: 3.13
Added the :class:`!PhotoImage` method :meth:`!copy_replace` to copy a region
from one image to other image, possibly with pixel zooming and/or
subsampling. Add *from_coor... | trusted_official_docs | CPython Docs | Either type of image is created through either the ``file`` or the ``data`` option (other options are available as well).
.. versionchanged:: 3.13
Added the :class:`!PhotoImage` method :meth:`!copy_replace` to copy a region
from one image to other image, possibly with pixel zooming and/or
subsampling. Add *from_coor... | Either type of image is created through either the ``file`` or the ``data`` option (other options are available as well).
.. versionchanged:: 3.13
Added the :class:`!PhotoImage` method :meth:`!copy_replace` to copy a region
from one image to other image, possibly with pixel zooming and/or
subsampling. Add *from_coor... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5b5eaec4-1a72-4ccd-b344-dc1baad6b6f7 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,552 | supabase-export-v2 | dc629c6b80bc734c | * an integer which refers to the numeric position of the entry in the widget, counted from the top, starting with 0;
* the string ``"active"``, which refers to the menu position that is currently
under the cursor; | trusted_official_docs | CPython Docs | * an integer which refers to the numeric position of the entry in the widget, counted from the top, starting with 0;
* the string ``"active"``, which refers to the menu position that is currently
under the cursor; | * an integer which refers to the numeric position of the entry in the widget, counted from the top, starting with 0;
* the string ``"active"``, which refers to the menu position that is currently
under the cursor; | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5bee85da-4080-4624-8280-1344ee8b93e2 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,456 | supabase-export-v2 | c594f9079271e0aa | is not running the event loop and processing events, any :mod:`!tkinter` calls made from threads other than the one running the Tcl interpreter will fail.
A number of special cases exist: | trusted_official_docs | CPython Docs | is not running the event loop and processing events, any :mod:`!tkinter` calls made from threads other than the one running the Tcl interpreter will fail.
A number of special cases exist: | is not running the event loop and processing events, any :mod:`!tkinter` calls made from threads other than the one running the Tcl interpreter will fail.
A number of special cases exist: | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5e0a7d75-cd14-418b-9089-0064d587feab | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,369 | supabase-export-v2 | a3645a5e6caa9797 | Note that on some platforms this will only work correctly if *id* refers to a Tk frame or toplevel that has its -container option enabled.
:class:`Tk` reads and interprets profile files, named
:file:`.{className}.tcl` and :file:`.{baseName}.tcl`, into the Tcl
interpreter and calls :func:`exec` on the contents of
:fi... | trusted_official_docs | CPython Docs | Note that on some platforms this will only work correctly if *id* refers to a Tk frame or toplevel that has its -container option enabled.
:class:`Tk` reads and interprets profile files, named
:file:`.{className}.tcl` and :file:`.{baseName}.tcl`, into the Tcl
interpreter and calls :func:`exec` on the contents of
:fi... | Note that on some platforms this will only work correctly if *id* refers to a Tk frame or toplevel that has its -container option enabled.
:class:`Tk` reads and interprets profile files, named
:file:`.{className}.tcl` and :file:`.{baseName}.tcl`, into the Tcl
interpreter and calls :func:`exec` on the contents of
:fi... | python, official-docs, cpython, P0 | Local_Trusted_Corpus | |
5f046af9-a7a8-4c3f-bdff-867e2fd62192 | CPython Docs | file://datasets/cpython/Doc/library/tkinter.rst | unknown | 08c95c6d-9a71-45f9-be98-7ce14cff5193 | 35,335 | supabase-export-v2 | 25643c69adc514f1 | --------------
The :mod:`!tkinter` package ("Tk interface") is the standard Python interface to
the Tcl/Tk GUI toolkit. Both Tk and :mod:`!tkinter` are available on most Unix
platforms, including macOS, as well as on Windows systems. | trusted_official_docs | CPython Docs | --------------
The :mod:`!tkinter` package ("Tk interface") is the standard Python interface to
the Tcl/Tk GUI toolkit. Both Tk and :mod:`!tkinter` are available on most Unix
platforms, including macOS, as well as on Windows systems. | --------------
The :mod:`!tkinter` package ("Tk interface") is the standard Python interface to
the Tcl/Tk GUI toolkit. Both Tk and :mod:`!tkinter` are available on most Unix
platforms, including macOS, as well as on Windows systems. | 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.