- EasyGUI¶
- Example Usage¶
- LICENSE INFORMATION¶
- easygui 0.98.3
- Навигация
- Ссылки проекта
- Статистика
- Метаданные
- Сопровождающие
- Классификаторы
- Описание проекта
- Project in Maintainance
- EasyGUI
- Example Usage
- 0.98.3
- 0.98.2
- 0.98.0
- BUG FIXES
- ENHANCEMENTS
- KNOWN ISSUES
- OTHER CHANGES
- 0.97.4
- 0.97.3
- BUG FIXES
- ENHANCEMENTS
- KNOWN ISSUES
- Other Changes (that you likely don’t care about)
EasyGUI¶
EasyGUI is a module for very simple, very easy GUI programming in Python. EasyGUI is different from other GUI generators in that EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by simple function calls.
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.
EasyGUI runs on Python 2 and 3, and does not have any dependencies.
Example Usage¶
>>> 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'
- Support, Contacts
- Getting easygui and getting help
- Help develop easygui
- Thanks
- Introduction
- EasyGui’s demonstration routine
- Importing EasyGui
- Using EasyGui
- Default arguments for EasyGui functions
- Using keyword arguments when calling EasyGui functions
- Using buttonboxes
- msgbox
- ccbox
- ynbox
- buttonbox
- indexbox
- boolbox
- choicebox
- multchoicebox
- enterbox
- integerbox
- multenterbox
- passwordbox
- multpasswordbox
- textbox
- codebox
- diropenbox
- fileopenbox
- filesavebox
- EgStore
- exceptionbox
- An FAQ consisting of far too few questions. Help please 🙂
- General Questions
- Specifics
- A section to hold code snippets and recipes
- YouTube videos by Marcus Adams
- easygui for Students
- Previous Versions and website
- Stephen Ferg
easygui was started several years ago by Stephen Ferg and was developed and supported by him through 2013. From there, work was restarted circa 2014. The first goal was to update the then four year old release and address some bugs and minor enhancements. That first release will be/was 0.97.
LICENSE INFORMATION¶
Copyright (c) 2014, Stephen Raymond Ferg
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
easygui 0.98.3
EasyGUI is a module for very simple, very easy GUI programming in Python. EasyGUI is different from other GUI generators in that EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by simple function calls.
Навигация
Ссылки проекта
Статистика
Метаданные
Лицензия: BSD License (BSD)
Метки gui, linux, windows, graphical, user, interface
Сопровождающие
Классификаторы
Описание проекта
Project in Maintainance
Hi everyone. There hasn’t been much activity but thankfully we have a new revision. Thank you contributors and thank you Stephen Ferg for creating EasyGui.
You might also consider the following alternatives:
For those who wish to contribute you are welcome to fork this respository. Or, take a look at the alternatives and contribute there.
EasyGUI
EasyGUI is a module for very simple, very easy GUI programming in Python. EasyGUI is different from other GUI libraries in that EasyGUI is NOT event-driven. Instead, all GUI interactions are invoked by simple function calls.
EasyGUI runs on Python 2 and 3, and does not have any dependencies beyond python and Tk. Linux Python 2 users will have to run sudo apt-get install python-tk and Linux Python 3 users will have to run sudo apt-get install python3-tk to install Tkinter.
Example Usage
>>> 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'
To see demo programs using EasyGUI, call the easygui.egdemo() function.
Full documentation is always available.
For our develop version which will be released next: http://easygui.readthedocs.org/en/develop.
0.98.3
Update collections.abc import location (old location was deprecated since version 3.3, removed in version 3.10) See: https://docs.python.org/3.9/library/collections.html#module-collections for details Add some unit test coverage and test automation for TravisCI.
0.98.2
Several updates and fixes thanks to Al and others.
0.98.0
This is an exciting time for easygui. We continue to make good progress with refactoring as well as some enhancements and bug fixes here and there.
We would like to welcome Juanjo Denis-Corrales to the team. He is responsible for lots of good new work this release. Of course we appreciate the work of everyone who contributed.
NOTE: I decided in this release to change the API a bit. Please consult the function documentation for details.
BUG FIXES
ENHANCEMENTS
- Refactored the easygui.py file into several smaller files to improve our ability to manage the code
- Added callbacks to allow for more dynamic dialogs. See the docs for usage.
- Added class access to dialogs so properties may be changed.
KNOWN ISSUES
- There were previous issues when using easygui with the IDLE IDE. I hope I resolved these problems, however, I’ve never actually been able to repeat them. Please report any problems found in github.
OTHER CHANGES
0.97.4
This is a minor bug-fix release to address python 3 import errors.
0.97.3
We are happy to release version 0.97.3 of easygui. The intent of this release is to address some basic functionality issues as well as improve easygui in the ways people have asked.
Robert Lugg (me) was searching for a GUI library for my python work. I saw easygui and liked very much its paradigm. Stephen Ferg, the creator and developer of easygui, graciously allowed me to start development back up. With the help of Alexander Zawadzki, Horst Jens, and others I set a goal to release before the end of 2014.
We rely on user feedback so please bring up problems, ideas, or just say how you are using easygui.
BUG FIXES
- sourceforge #4: easygui docs contain bad references to easygui_pydoc.html
- sourceforge #6: no index.html in docs download file. Updated to sphinx which as autolinking.
- sourceforge #8: unicode issues with file*box. Fixed all that I knew how.
- sourceforge #12: Cannot Exit with ‘X’. Now X and escape either return «cancel_button», if set, or None
ENHANCEMENTS
- Added ability to specify default_choice and cancel_choice for button widgets (See API docs)
- True and False are returned instead of 1 and 0 for several boxes
- Allow user to map keyboard keys to buttons by enclosing a hotkey in square braces like: «Pick [M]e», which would assign keyboard key M to that button. Double braces hide that character, and keysyms are allowed: [[q]]Exit Would show Exit on the button, and the button would be controlled by the q key []Help Would show Help on the button, and the button would be controlled by the F1 function key NOTE: We are still working on the exact syntax of these key mappings as Enter, space, and arrows are already being used.
- Escape and the windows ‘X’ button always work in buttonboxes. Those return None in that case.
- sourceforge #9: let fileopenbox open multiple files. Added optional argument ‘multiple’
- Location of dialogs on screen is preserved. This isn’t perfect yet, but now, at least, the dialogs don’t always reset to their default position!
- added some, but not all of the bugs/enhancements developed by Robbie Brook: http://all-you-need-is-tech.blogspot.com/2013/01/improving-easygui-for-python.html
KNOWN ISSUES
- In the documentation, there were previous references to issues when using the IDLE IDE. I haven’t experienced those, but also didn’t do anything to fix them, so they may still be there. Please report any problems and we’ll try to address them
- I am fairly new to contributing to open source, so I don’t understand packaging, pypi, etc. There are likely problems as well as better ways to do things. Again, I appreciate any help or guidance.
Other Changes (that you likely don’t care about)
- Restructured loading of image files to try PIL first throw error if file doesn’t exist.
- Converted docs to sphinx with just a bit of doctest. Most content was retained from the old site, so there might be some redundancies still. Please make any suggested improvements.
- Set up a GitHub repository for development: https://github.com/robertlugg/easygui
- Improved output/packaging for Debian distribution
EasyGui is licensed under what is generally known as the «modified BSD license» (aka «revised BSD», «new BSD», «3-clause BSD»). This license is GPL-compatible but less restrictive than GPL.