EasyGui v0.94 has been released

EasyGui version 0.94 has been released. It can be downloaded from the downloads page of the EasyGui page at SourceForge.

Highlights of this release include:

  • The distribution now includes setup.py.  This should make it easier to install EasyGui, especially for Mac users.
  • Codebox and textbox now return the contents of the box.  This makes it possible to use codebox and textbox as data-entry widgets. It also makes it possible to do something like this:
    • retrieve some text from (say) a file
    • display the text in a textbox or codebox
    • have the user update it
    • get the text back
    • save the updated text in the file
  • Support has been added for keyboard navigation with the arrow keys. Previously keyboard navigation recognized only the the TAB keys.
  • In EgStore, the pickle file is now opened for reading and writing with “rb” and “wb” rather than with “r” and “w”.  This change is necessary for compatibility with Python 3+.

There are also a number of minor bug fixes. See below for full details.

ENHANCEMENTS

  1. The codebox and textbox functions now return the contents of the box, rather than simply the name of the button (“Yes”). This makes it possible to use codebox and textbox as data-entry widgets. A big “thank you!” to Dominic Comtois for requesting this feature, patiently explaining his requirement, and helping to discover the tkinter techniques to implement it.
  2. Added support for SPACEBAR to command buttons. Now, when keyboard focus is on a command button, a press of the SPACEBAR will act like a press of the ENTER key; it will activate the command button.
  3. Added support for keyboard navigation with the arrow keys (up,down,left,right) to the fields and buttons in enterbox, multenterbox and multpasswordbox, and to the buttons in choicebox and all buttonboxes.
  4. Added highlightthickness=2 to entry fields in multenterbox and multpasswordbox. Now it is easier to tell which entry field has keyboard focus.

NOTE THAT enhancement #1 breaks backward compatibility.  But because in previous versions of EasyGui the value returned by codebox and textbox was meaningless, no application should have been checking it.  So in actual practice, this change should not break backward compatibility.

BUG FIXES

  1. In EgStore, the pickle file is now opened with “rb” and “wb” rather than with “r” and “w”. This change is necessary for compatibility with Python 3+.
    Thanks to Marshall Mattingly for reporting this problem and providing the fix.
  2. In integerbox, the actual argument names did not match the names described in the docstring.
    Thanks to Daniel Zingaro of the University of Toronto for reporting this problem.
  3. In choicebox, the signature to choicebox incorrectly showed choicebox as accepting a “buttons” argument.
    The signature has been fixed.
  4. In integerbox, the “argLowerBound” and “argUpperBound” arguments have been renamed to “lowerbound” and “upperbound” and the docstring has been corrected.

NOTE THAT bug fix #4 breaks backward compatibility.  If “argLowerBound” or “argUpperBound” are used as the names of keyword arguments, an AssertionError with an explanatory error message is raised.  But because current users of integerbox are probably passing these values in as positional rather than keyword arguments, the effect of this change in actual practice is expected to be minimal.

This entry was posted in Uncategorized. Bookmark the permalink.

5 Responses to EasyGui v0.94 has been released

  1. ben says:

    hi , easygui is really nice for easy scripting :-D. one thing i hope it can improve – the gif image restriction sounds a bit odd. i hope it can support PhotoImage object in the future. thanks alot.

    (my script use PIL to process image in batch. it really very few gui interaction but i need a preview of certain picture before processing. since PIL support photoimage object, passing in the object is really convenient for ppl who have PIL installed. )

    • Steve Ferg says:

      This was fixed in EasyGui v 0.95. Now EasyGui attempts to import PIL. If it is successful in importing PIL, it uses PIL to display the image. If the import fails, EasyGui rejects the non-gif file (with a helpful error message of course).

      Note that http://www.pythonware.com/products/pil/ says that PIL doesn’t yet support Python 3.x.

  2. ben says:

    oh plus. it would be great if the dialog boxes are shown in the middle of the screen by default, or maybe provide some simple positioning keyword like center, lastPos, etc?

    • Steve Ferg says:

      More powerful positioning features are planned for a future release.

      But the current version *does* position the dialog boxes in the middle of the screen by default. If that is not happening for you, please contact me offline via

      http://www.ferg.org/contact_info/index.html

      and we’ll see if we can figure out what’s going on.

  3. Luc Nasg says:

    Whenever I make the upperBound in the integerbox more than 99, if I type a number higher than 99 it still says:
    “The value that you entered is greater than the upper bound of 99”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s