并且,它提供了极为友好的Python风格的接口,大大提升开发效率。...('Enter something on Row 2'), sg.InputText()],
[sg.Button('Ok'), sg.Button('Cancel')] ]...# 生成窗口
window = sg.Window('Window Title', layout)
# 消息处理和输入消息接收
while True:
event, values = window.read...()
if event in (None, 'Cancel'):
break
print('You entered ', values[0])
window.close...PySimpleGUI as sg
layout = [[sg.Text('Filename')],
[sg.Input(), sg.FileBrowse()],
[sg.OK(), sg.Cancel