// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
    \page creator-how-to-run-python-apps.html
    \previouspage creator-how-tos.html

    \ingroup creator-how-to-projects
    \ingroup creator-how-to-run

    \title Run Python applications

    You can execute Qt for Python applications directly from \QC. If you
    use the new project wizard to create the application project, the
    \c main.py file is automatically executed when you select the
    \uicontrol Run button.

    You can specify another file to execute in the run settings of the project.

    \image {qtcreator-python-run-settings.webp } {Python run settings}

    \sa {Configure projects for running}, {Create Qt for Python applications},
    {Develop Qt for Python applications}, {Python Run Settings}
*/

/*!
    \page creator-run-settings-python.html
    \previouspage creator-reference.html

    \ingroup creator-reference-run-configurations

    \title Python Run Settings

    \brief Settings for running Qt for Python applications.

    To specify settings for running applications on the \l {Kits}{Run device} that
    you select for a kit, go to \uicontrol Projects > \uicontrol {Run Settings}.

    \image {qtcreator-python-run-settings.webp } {Python run settings}

    The following table summarizes the settings for running Qt for Python
    applications.

    \table
    \header
        \li Setting
        \li Value
    \row
        \li \uicontrol Python
        \li Path to the Python executable.
    \row
        \li \uicontrol {Buffered output}
        \li Stores the output in a buffer. This improves output performance,
            but causes delays in output.
    \row
        \li \uicontrol Script
        \li Shows the path to the main file of the project that will be run.
    \row
        \li \uicontrol {Command line arguments}
        \li Command-line arguments to pass to the executable.
    \endtable

    \section1 Custom Executable Run Configuration

    To run some other Python file than \c main.py, create a custom
    executable run configuration:

    \image {qtcreator-python-run-settings-custom-executable.webp}
    {Python custom executable run settings}

    \list 1
        \li Select \uicontrol Add > \uicontrol {Custom Executable}.
        \li In the \uicontrol Executable field, specify the path to the
            Python executable.
        \li In the \uicontrol {Command line arguments} field, select
            the Python file to run.
    \endlist

    \sa {Activate kits for a project}, {Configure projects for running},
    {Create Qt for Python applications}, {Develop Qt for Python applications}
*/
