库函数介绍:
easygui 库官方链接http://easygui.sourceforge.net/ 点击打开链接
easygui库下载链接:http://download.csdn.net/detail/wuce_bai/9456715点击打开链接
安装教程:
1.下载好的 “easygui-0.96” 文件放到桌面;
2.运行cmd 进入windows命令窗口,输入“cd Desktop” 进入桌面,输入命令“cd easygui-0.96”
3.执行:C:\python33\python.exe setup.py install
使用按钮组件函数:
1. msgbox(msg='(Yourmessage goes here)', title=' ', ok_button='OK', image=None, root=None);
该函数显示一个消息和提供一个‘ok’按钮,消息内容和按钮内容可以自行更改;
<span style="font-size:14px;">>>> msgbox("我一定要学会编程!", ok_button="加油!")</span>
2.ccbox(msg='Shall I continue?', title=' ', choices=('Continue', 'Cancel'), image=None, default_choice='Continue',cancel_choice='Cancel')
该函数提供一选择‘continue’或者‘cancel’并返回一个整型的1或者0;
msg (str) – the msg to be displayed
title