0开始使用

发布时间 2023-06-27 17:03:03作者: Devinwon

1-安装PySimpleGUI

pip install PySimpleGUI 

2-基本框架

import PySimpleGUI as sg
 
# 布局(空白),没有任何内容/对象
layout=[[]]
 
# 创造窗口
window = sg.Window('myTitle', layout)

# 事件监听
event,values=window.read()

3-运行截图