[ANN] EasyGUI_Qt version 0.9

stephen.boulet at gmail.com stephen.boulet at gmail.com
Wed Jan 14 12:12:05 EST 2015


On Tuesday, January 13, 2015 at 8:30:13 PM UTC, André Roberge wrote:
> On Tuesday, 13 January 2015 08:23:30 UTC-4, stephen... at gmail.com  wrote:
> > I found a solution that I'm happy with.
> > 
> > from datetime import datetime
> > from easygui_qt import *
> > 
> > datestring = get_date()
> > mydate = datetime.strptime(datestring, '%b %d %Y')
> 
> I'm thinking of having the new version return a datetime object automatically.
> 
> André

That's probably a cleaner solution.

> > On Saturday, January 10, 2015 at 1:02:30 AM UTC, André Roberge wrote:
> > > On Friday, 9 January 2015 19:09:15 UTC-4, stephen... at gmail.com  wrote:
> > > > On Wednesday, December 31, 2014 at 4:24:50 PM UTC-6, André Roberge wrote:
> > > > > EasyGUI_Qt version 0.9 has been released.  This is the first announcement about EasyGUI_Qt on this list.
> > > > > 
> > > > > Like the original EasyGUI (which used Tkinter), 
> > > > > EasyGUI_Qt seeks to provide simple GUI widgets
> > > > > that can be called in a procedural program. 
> > > > > 
> > > > > EasyGUI_Qt is NOT event-driven: all GUI interactions are invoked by simple function calls.
> > > > > 
> > > > > The archetype is get_string(message)
> > > > > which pops a box whose purpose is exactly the same as Python's input(prompt),
> > > > > that is, present the user with a question/prompt, have the user enter an
> > > > > answer, and return the provided answer as a string.  Thus
> > > > > easygui_qt.get_string() can be used as a drop-in replacement for
> > > > > input().
> > > > > 
> > > > > Similarly, instead of using a print() function to display a message,
> > > > > show_message() is used which pops a message window.
> > > > > 
> > > > > EasyGUI_Qt requires PyQt4 and is really targeted for Python 3.3+ - although it can work (possibly with some unicode problems ...) using Python 2.7.
> > > > > 
> > > > > More information can be found at 
> > > > > http://easygui-qt.readthedocs.org/en/latest/index.html
> > > > > 
> > > > > Feedback is most welcome, including reporting bugs to 
> > > > > https://github.com/aroberge/easygui_qt/issues
> > > > > 
> > > > > Happy 2015 everyone,
> > > > > 
> > > > > André Roberge
> > > > 
> > > > Very nice, thanks.
> > > > 
> > > > One issue is the format returned for the calendar selection. For today, the string returned is "Fri Jan 9 2015". My script needs to convert the date to a datetime.date, and having the month returned as a string instead of an integer makes this harder.
> > > 
> > > Would today's date be represented as the string "09.01.2015" useful to you? (I found out how to do this.)  If so, I could perhaps add an argument like numeric_format = True.
> > > 
> > > André



More information about the Python-list mailing list