Web Analytics Made Easy - Statcounter
Skip to content


For more information visit PySimpleGUI.com
Do you use PySimpleGUI 4? Here is what you need to know.

User Interfaces For Humans

The Project

User Interfaces for Humans

Transforms tkinter, Qt, Remi, WxPython into portable people-friendly Pythonic interfaces.

“The ability to simplify means to eliminate the unnecessary so that the necessary may speak.” — Hans Hofmann (20th century painter)

Jump-Start

Install

python -m pip install pysimplegui
(use python3 if on Linux or Mac)

This Code

import PySimpleGUI as sg

# All the stuff inside your window.
layout = [  [sg.Text('Some text on Row 1')],
            [sg.Text('Enter something on Row 2'), sg.InputText()],
            [sg.Button('Ok'), sg.Button('Cancel')] ]

# Create the Window
window = sg.Window('Window Title', layout)

# Event Loop to process "events" and get the "values" of the inputs
while True:
    event, values = window.read()
    if event == sg.WIN_CLOSED or event == 'Cancel': # if user closes window or clicks cancel
        break
    print('You entered ', values[0])

window.close()

Makes This Window

and returns the value input as well as the button clicked.

image

Try It - Click "Run"

It's that simple

It's possible to create sophisticated, complex, dynamic, multi-window applications using PySimpleGUI. You, human, are not required to use complex Python language features or a complicated API in order to turn your vision into reality.

Want to Skip The Intro?

If you're in a "I just want to get to building my program" mood, then you can skip over the next section, "What is PySimpleGUI?", and begin reading the section "Getting Started" When you're ready to learn a bit more in depth of the "what" and the "who" of PySimpleGUI, then come back and read the next section. If it's "How" you want (How do I?) then feel free to jump ahead.