Image

PySimpleGUI creates graphical user interfaces (GUIs) using Python, quickly and easily!

To try PySimpleGUI, start with these simple steps. (Or, if you are ready: Sign Up Now)

Get started with these simple steps:

  1. Make sure Python is installed.
  2. Install PySimpleGUI:

    A PHP Error was encountered

    Severity: Warning

    Message: preg_match(): Unknown modifier '2'

    Filename: libraries/App.php

    Line Number: 509

    Backtrace:

    File: /var/www/html/application/libraries/App.php
    Line: 509
    Function: preg_match

    File: /var/www/html/application/views/front/home-page.php
    Line: 143
    Function: getOS

    File: /var/www/html/application/controllers/Welcome.php
    Line: 41
    Function: view

    File: /var/www/html/index.php
    Line: 315
    Function: require_once

    A PHP Error was encountered

    Severity: Warning

    Message: preg_match(): Unknown modifier 'T'

    Filename: libraries/App.php

    Line Number: 509

    Backtrace:

    File: /var/www/html/application/libraries/App.php
    Line: 509
    Function: preg_match

    File: /var/www/html/application/views/front/home-page.php
    Line: 143
    Function: getOS

    File: /var/www/html/application/controllers/Welcome.php
    Line: 41
    Function: view

    File: /var/www/html/index.php
    Line: 315
    Function: require_once

    python -m pip install pysimplegui
  3. Download main.py, which contains:
    import PySimpleGUI as sg
    
    # All the stuff inside your window.
    layout = [  [sg.Text("What's your name?")],
                [sg.InputText()],
                [sg.Button('Ok'), sg.Button('Cancel')] ]
    
    # Create the Window
    window = sg.Window('Hello Example', layout)
    
    # Event Loop to process "events" and get the "values" of the inputs
    while True:
        event, values = window.read()
    
        # if user closes window or clicks cancel
        if event == sg.WIN_CLOSED or event == 'Cancel':
            break
    
        print('Hello', values[0], '!')
    
    window.close()
    
  4. Run:
    python main.py

You will see this window:

The Try It! page lets you interact with this example and PySimpleGUI.

Next step: Get started! It's this easy to create your GUI with PySimpleGUI. The documentation tells you everything you need to know.

You have 30 days to try PySimpleGUI. Before your trial ends, you will need to subscribe:

  • Hobbyist subscriptions are NO COST
  • Commercial subscriptions start at $99/year

If you prefer, you can sign up now.