Py之easygui:easygui的简介、安装(最正确安装)、使用方法之详细攻略

简介: Py之easygui:easygui的简介、安装(最正确安装)、使用方法之详细攻略

easygui的简介


      easy gui是一个模块,用于在Python中进行非常简单、非常简单的GUI编程。easygui不同于其他GUI生成器,因为easygui不是事件驱动的。相反,所有的GUI交互都是通过简单的函数调用来调用的。

      easy gui提供了一个易于使用的界面,用于与用户进行简单的GUI交互。它不需要程序员了解任何关于tkinter, frames, widgets, callbacks 或者 lambda的信息。easygui在python 2和3上运行,并且没有任何依赖关系。

      EasyGui provides an easy-to-use interface for simple GUI interaction with a user. It does not require the programmer to know anything about tkinter, frames, widgets, callbacks or lambda. All GUI interactions are invoked by simple function calls that return results.


easygui 0.97 (2014-12-20) documentation

easygui pypi



easygui安装


1、获取Python的工具包easygui


先从网上下载支持Python的工具包easygui-0.96或easygui-0.97,如有需要,请留言向本人索取

image.png


2、easygui安装


第一步:在GUI工具包所在路径,进入环境,输入dir,查询该文件下是否有安装文件。

第二步:命令安装

输入命令

python setup.py install

静等下载即可!

image.png



哈哈,大功告成!



easygui的使用方法


>>> import easygui

>>> easygui.ynbox('Shall I continue?', 'Title', ('Yes', 'No'))

True

>>> 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'



相关文章
|
XML JSON JavaScript
Py之demjson:Python库之demjson的简介、安装、使用方法详细攻略
Py之demjson:Python库之demjson的简介、安装、使用方法详细攻略
Py之demjson:Python库之demjson的简介、安装、使用方法详细攻略
|
数据可视化 API 计算机视觉
Py之pycocotools:pycocotools库的简介、安装、使用方法之详细攻略
Py之pycocotools:pycocotools库的简介、安装、使用方法之详细攻略
|
数据可视化 API 计算机视觉
Py之pycocotools:pycocotools库的简介、安装、使用方法之详细攻略续篇
Py之pycocotools:pycocotools库的简介、安装、使用方法之详细攻略续篇
|
Python Windows
Py之pyHook:pyHook库函数的简介、安装、使用方法之详细攻略
Py之pyHook:pyHook库函数的简介、安装、使用方法之详细攻略
|
Unix Linux API
Py之wxPython:wxPython的简介、安装、使用方法之详细攻略
Py之wxPython:wxPython的简介、安装、使用方法之详细攻略
Py之wxPython:wxPython的简介、安装、使用方法之详细攻略
|
程序员 Linux Android开发
Py之Kivy:Python库之Kivy的简介、安装、使用方法之详细攻略
Py之Kivy:Python库之Kivy的简介、安装、使用方法之详细攻略
Py之Kivy:Python库之Kivy的简介、安装、使用方法之详细攻略
|
机器人 API UED
Py之itchat:python库之itchat的简介、安装、使用方法之详细攻略
Py之itchat:python库之itchat的简介、安装、使用方法之详细攻略
Py之itchat:python库之itchat的简介、安装、使用方法之详细攻略
|
数据可视化 IDE Shell
Py之ipython:Python库之ipython的简介、安装、使用方法详细攻略
Py之ipython:Python库之ipython的简介、安装、使用方法详细攻略
Py之ipython:Python库之ipython的简介、安装、使用方法详细攻略
|
Ubuntu IDE 开发工具
Py之mglearn:python库之mglearn简介、安装、使用方法之详细攻略
Py之mglearn:python库之mglearn简介、安装、使用方法之详细攻略
Py之mglearn:python库之mglearn简介、安装、使用方法之详细攻略
|
机器学习/深度学习 算法 API
Py之neurolab:Python库之neurolab的简介、安装、使用方法之详细攻略
Py之neurolab:Python库之neurolab的简介、安装、使用方法之详细攻略
Py之neurolab:Python库之neurolab的简介、安装、使用方法之详细攻略