1.pip install PySimpleGUI
2.coding
import PySimpleGUI as sg layout =[ [sg.Text("HELLO PySimpleGUI")], [sg.Text("姓名"),sg.InputText("张喆坤")], [sg.Text("性别"),sg.InputText("N\A")], [sg.Text("年龄"),sg.InputText("27")], [sg.Button("确定"),sg.Button("取消")], ] window=sg.Window("Python gui",layout) while True: envent,values=window.read() if envent ==None: break window.close()
标签:Python,Text,GUI,PySimpleGUI,window,InputText,sg From: https://www.cnblogs.com/zhangzhekun/p/17285209.html