[Frank]
> How is it for building GUI's?
As good as javax.Swing is, but easier to code with than java. This is
because of little tricks such as adding listeners without having to
declare anonymous classes, as one does in java.
Compare this java
int count = 1;
JButton button = new JButton("Increment");
button.addActionListener(
new ActionListener
{
public void actionPerformed(ActionEvent e)
{
count++;
}
})
to the equivalent jython.
count = 1
def Increment(event):
count += 1
button = swing.JButton("Increment", actionPerformed = Increment)
Google ("jython swing"); there's lots of material out there.
> (for existing cli progs)
Hmm, not sure what you mean here. If your prog is designed for command
line, you're probably going to have re-design it for GUI operation.
> Is it an easier learning curve than through Java?
Hugely, especially for someone who already knows python syntax and libraries.
> Reccomended books, sites?
This site has a good list.
http://www.awaretek.com/tutorials.html#jython
I particularly like Dave Kuhlman's intro course
http://www.rexx.com/~dkuhlman/jython_course_03.html
And for books, the definitive but advanced book is "Jython
Essentials", written by our own Samuele Pedroni.
http://oreilly.com/catalog/9780596002473/
http://books.google.ie/books?id=VnGkf92gQh4C
That book is quite old though, referring to jython 2.1. Some of the
jython-dev team are working on a new book for 2.5, to be published
later this year.
http://wiki.python.org/jython/JythonMonthly/Newsletters/March2009
Regards,
Alan.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Python Ireland" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---