PySimpleGUI/DemoPrograms/Demo_YouTube_Intro.py
2018-11-01 02:39:18 -04:00

11 lines
No EOL
250 B
Python

import PySimpleGUI as sg
layout = [[sg.Text('What is your name?')],
[sg.InputText()],
[sg.Button('Ok')]]
window = sg.Window('Title of Window').Layout(layout)
event, values = window.Read()
sg.Popup('Hello {}'.format(values[0]))