﻿# hello_world.py

import PySimpleGUI as sg

sg.theme('Default1')   # Add a touch of color
# All the stuff inside your window.
layout = [  [sg.Text('Hello World!')],
           [sg.Button('OK')]]

# Create the Window
window = sg.Window('Hello World', layout)
# Event Loop to process "events"
while True:
    event, values = window.read()
    if event == sg.WIN_CLOSED or event == 'OK': # if user closes window or clicks cancel
        break

window.close()