一个Python GUI神器,双手彻底解放!
▍什么是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
评论