一个Python GUI神器,双手彻底解放!
数据管道
共 1770字,需浏览 4分钟
·
2020-11-28 00:52
▍什么是PySimpleGUI?
▍PySimpleGUI示例展示
import PySimpleGUI as sg
layout = [[sg.Button(f'{row}, {col}') for col in range(4)] for row in range(4)]
event, values = sg.Window('List Comprehensions', layout).read(close=True)
▍运行环境
python -m pip install PySimpleGUI
python3 -m pip install PySimpleGUI
python -m pip install --upgrade --no-cache-dir PySimpleGUI
python3 -m pip install --upgrade --no-cache-dir PySimpleGUI
评论