本帖最后由 zhuomuniao110 于 2022-11-17 10:08 编辑
这里给大家推荐一个:easygui
安装方式:
使用示例
- >>> import easygui
- >>> easygui.ynbox('Shall I continue?', 'Title', ('Yes', 'No'))
- 1
- >>> easygui.msgbox('This is a basic message box.', 'Title Goes Here')
- 'OK'
- >>> easygui.buttonbox('Click on your favorite flavor.', 'Favorite Flavor', ('Chocolate', 'Vanilla', 'Strawberry'))
- 'Chocolate'
您还可以考虑以下替代方法:
https://github.com/aroberge/easygui_qt
https://github.com/ponty/psidialogs
资料地址
https://pypi.org/project/easygui/
帮助文件
https://easygui.readthedocs.io/en/master/
|