<commit_before>window:
=======

*Config file section*

+----------------------------------------------------------------------------+---------+
| Valid in :doc:`machine config files </config/instructions/machine_config>` | **YES** |
+----------------------------------------------------------------------------+---------+
| Valid in :doc:`mode config files </config/instructions/mode_config>`       | **NO**  |
+----------------------------------------------------------------------------+---------+

.. overview

The ``window:`` section of your config is where you configure the properties
of the on-screen window which is created by MPF-MC.

.. code-block:: mpf-config

    window:
        width: 800
        height: 600
        title: Mission Pinball Framework
        resizable: yes
        borderless: yes
        fullscreen: no
        exit_on_escape: True
        source_display: window

.. note::
   If you do not add a ``window:`` section to your machine config, MPF will
   create a window at the default size of 800x600.

Optional settings
-----------------

The following sections are optional in the ``window:`` section of your config. (If you don't include them, the default will be used).

borderless:
~~~~~~~~~~~
Single value, type: ``boolean`` (Yes/No or True/False). Default: ``0``

Controls whether the pop-up window has a border (the "frame") around it.

exit_on_escape:
~~~~~~~~~~~~~~~
Single value, type: ``boolean`` (Yes/No or True/False). Default: ``true``

Controls whether the MPF MC shuts down when the ``Esc`` key is pressed.

fullscreen:
~~~~~~~~~~~
Single value, type: ``boolean`` (Yes/No or True/False). Default: ``0``

Controls whether the pop-up window should be a full screen window (if the
value is "true") or whether it should be a regular window.

height:
~~~~~~~
Single value, type: ``integer``. Default: ``600``

The initial height of the popup window, specified in pixels.

icon:
~~~~~
Single value, type: ``string``. Default: ``None``

The icon for the window which will be shown in the title bar.

left:<commit_msg>Add effects setting to window<commit_after>window:
=======

*Config file section*

+----------------------------------------------------------------------------+---------+
| Valid in :doc:`machine config files </config/instructions/machine_config>` | **YES** |
+----------------------------------------------------------------------------+---------+
| Valid in :doc:`mode config files </config/instructions/mode_config>`       | **NO**  |
+----------------------------------------------------------------------------+---------+

.. overview

The ``window:`` section of your config is where you configure the properties
of the main on-screen window which is created by MPF-MC.

.. code-block:: mpf-config

    window:
        width: 800
        height: 600
        title: Mission Pinball Framework
        resizable: yes
        borderless: yes
        fullscreen: no
        exit_on_escape: True
        source_display: window
        effects:
            - type: dmd

.. note::
   If you do not add a ``window:`` section to your machine config, MPF will
   create a window at the default size of 800x600.

Optional settings
-----------------

The following sections are optional in the ``window:`` section of your config. (If you don't include them, the default will be used).

borderless:
~~~~~~~~~~~
Single value, type: ``boolean`` (Yes/No or True/False). Default: ``0``

Controls whether the pop-up window has a border (the "frame") around it.

effects:
~~~~~~~~

An optional list of effects to apply to the window contents. These effects perform image processing to the
source image and can be used to get an old school "DMD look" or "color DMD look" to your window
as well as other special effects.  For more information on effects, please review the
:doc:`effects </displays/widgets/display/effects>` documentation.

exit_on_escape:
~~~~~~~~~~~~~~~
Single value, type: ``boolean`` (Yes/No or True/False). Default: ``true``

Controls whether the MPF MC shuts down when the ``Esc`` key is pressed.

fullscreen:
~~~~~~~~~~~
Single value, type: ``boolean`` (Yes/No or True/False). Default: ``0``

Controls whether the pop-up window should be a full screen window (if the
value is "true") or whether it should be a regular window.

height:
~~~~~~~
Single value, type: ``integer``. Default: ``600``

The initial height of the popup window, specified in pixels.

icon:
~~~~~
Single value, type: ``string``. Default: ``None``

The icon for the window which will be shown in the title bar.

left:
{'fraction_non_alphanumeric': 0.23511316194243023, 'fraction_numerical': 0.007470885519666007, 'mean_word_length': 2.2329545454545454, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4777666', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1139, 'n_words': 515}