![]() There were previous issues when using easygui with the IDLE IDE.Added class access to dialogs so properties may be changed.Added callbacks to allow for more dynamic dialogs.Refactored the easygui.py file into several smaller files to improve our ability to manage the code.Made changes guessing at fixes to any IDLE problems.Please consult the function documentation for details. NOTE: I decided in this release to change the API a bit. Of course we appreciate the work of everyone who contributed. He is responsible for lots of good new work We would like to welcome Juanjo Denis-Corrales to the team. Well as some enhancements and bug fixes here and there. We continue to make good progress with refactoring as Several updates and fixes thanks to Al and others. Update collections.abc import location (old location was deprecated since version 3.3, removed in version 3.10)Īdd some unit test coverage and test automation for TravisCI. To see demo programs using EasyGUI, call the easygui.egdemo() function.įor our develop version which will be released next: > easygui.buttonbox('Click on your favorite flavor.', 'Favorite Flavor', ('Chocolate', 'Vanilla', 'Strawberry')) > easygui.msgbox('This is a basic message box.', 'Title Goes Here') > easygui.ynbox('Shall I continue?', 'Title', ('Yes', 'No')) 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. Instead, all GUI interactions are invoked by simple function calls.ĮasyGUI runs on Python 2 and 3, and does not have any dependencies beyond python and Tk. Libraries in that EasyGUI is NOT event-driven. Or, take a look at the alternatives and contribute there.ĮasyGUI is a module for very simple, very easy GUI programming in Python. You might also consider the following alternatives:įor those who wish to contribute you are welcome to fork this respository. Thank you contributors and thank you Stephen Ferg for creating EasyGui. There hasn't been much activity but thankfully we have a new revision. It also allows you to specify the lower and upper limits for the input value.Hi everyone. Msgbox ("Record has been updated.", "Pygmynote", ok_button="Close")Īs the name suggests, the integerbox function displays an input box where you can enter only numeric values. Input_update=enterbox(msg='Enter tags: ', title='Pygmynote', default='', strip=True)Ĭursor.execute ("UPDATE notes SET tags='" + sqlstr + "' WHERE id='" + input_id + "'""") Input_update=enterbox(msg='Enter note: ', title='Pygmynote', default='', strip=True)Ĭursor.execute ("UPDATE notes SET note='" + sqlstr + "' WHERE id='" + input_id + "'""") If boolbox("What do you want to update?", "Pygmynote", ): Input_id=enterbox(msg='Record ID: ', title='Pygmynote', default='', strip=True) The msgbox function takes at least one parameter, the message to display: Pile up!” greeting message with a fancy message box. Let’s start from the beginning and replace the simple “Pygmynote is ready. To import the module into your script, add the from easygui import * line in the beginning of the script. Download the latest release of the module, unpack the downloaded archive, and move the easygui.py file into the /usr/lib/python2.5/site-packages directory. Although Pygmynote is not all that difficult to use, adding a few input boxes and dialogs would make it even easier to enter and retrieve records.īefore you start tweaking a script, you have to install EasyGui. I put it to work on Pygmynote, a simple data managing tool I created for my personal use to keep tabs on my notes, URLs, and to-dos. The best way to discover EasyGui’s capabilities is to use it to improve an existing Python script. Using EasyGui, you can add visual elements with just a few lines of code. Thankfully, the EasyGui module allows you to add some GUI goodness to your Python scripts without going through coding rigmarole. This exercise is usually reserved for users who have already acquired decent Python programming skills, as it requires some serious code wizardry. In many cases, adding a graphical interface to Python scripts means getting your hands dirty with TKinter or other GUI programming kits.
0 Comments
Leave a Reply. |