2018-10-08 17:30:33 +00:00
|
|
|
import PySimpleGUI as sg
|
|
|
|
|
|
|
|
layout = [[sg.Text('What is your name?')],
|
|
|
|
[sg.InputText()],
|
|
|
|
[sg.Button('Ok')]]
|
|
|
|
|
|
|
|
window = sg.Window('Title of Window').Layout(layout)
|
|
|
|
|
2018-10-15 20:07:23 +00:00
|
|
|
event, values = window.Read()
|
2018-10-08 17:30:33 +00:00
|
|
|
|
|
|
|
sg.Popup('Hello {}'.format(values[0]))
|