469,951 Members | 2,564 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,951 developers. It's quick & easy.

Python Project (sigh with Java)

I know you may frown at my use at java, but this is a pretty simple way
to create GUIs quickly, using Java's swing. I have some code for an
approach for integrating the swing GUI components and python. I threw
the project together in a couple of days, so it is not some massive
application. And, I have some little models(hehe). Anyway, if you want
to check out an approach for working with Jython, here it is.

Some questions, I do get asked, how do you us python code in java. I
normally don't like using my python objects in the java code.
Basically, there is never the *.java files. You can do everything in
python, it is a lot simpler, short of language constructs you can only
do in java.

This is a HTML code generator, you only need a java runtime.

http://www.newspiritcompany.com/phoenixproj.html

--
Ramza from Atlanta
http://www.newspiritcompany.com
Aug 9 '05 #1
4 1373
Good job~
I also like both java and py so I always focus on jython,
but now it's being moved forward kinda slow.
I'm looking forward to jython 2.4.

You're right, swing is great. wxpy is also wonderfu but it's so lack
of docs. I mainly work on windows so I use p4d(python for delphi), I
use delphi for UI and use py for some other works. p4d is magic, I
like it. And I recommend it to everyone who is familiar with both py
and delphi.

On 8/9/05, Ramza Brown <be**********@gmail.com> wrote:
I know you may frown at my use at java, but this is a pretty simple way
to create GUIs quickly, using Java's swing. I have some code for an
approach for integrating the swing GUI components and python. I threw
the project together in a couple of days, so it is not some massive
application. And, I have some little models(hehe). Anyway, if you want
to check out an approach for working with Jython, here it is.

Some questions, I do get asked, how do you us python code in java. I
normally don't like using my python objects in the java code.
Basically, there is never the *.java files. You can do everything in
python, it is a lot simpler, short of language constructs you can only
do in java.

This is a HTML code generator, you only need a java runtime.

http://www.newspiritcompany.com/phoenixproj.html

--
Ramza from Atlanta
http://www.newspiritcompany.com
--
http://mail.python.org/mailman/listinfo/python-list

Aug 9 '05 #2
could ildg wrote:
Good job~
I also like both java and py so I always focus on jython,
but now it's being moved forward kinda slow.
I'm looking forward to jython 2.4.

You're right, swing is great. wxpy is also wonderfu but it's so lack
of docs. I mainly work on windows so I use p4d(python for delphi), I
use delphi for UI and use py for some other works. p4d is magic, I
like it. And I recommend it to everyone who is familiar with both py
and delphi.

On 8/9/05, Ramza Brown <be**********@gmail.com> wrote:
I know you may frown at my use at java, but this is a pretty simple way
to create GUIs quickly, using Java's swing. I have some code for an
approach for integrating the swing GUI components and python. I threw
the project together in a couple of days, so it is not some massive
application. And, I have some little models(hehe). Anyway, if you want
to check out an approach for working with Jython, here it is.

Some questions, I do get asked, how do you us python code in java. I
normally don't like using my python objects in the java code.
Basically, there is never the *.java files. You can do everything in
python, it is a lot simpler, short of language constructs you can only
do in java.

This is a HTML code generator, you only need a java runtime.

http://www.newspiritcompany.com/phoenixproj.html

--
Ramza from Atlanta
http://www.newspiritcompany.com
--
http://mail.python.org/mailman/listinfo/python-list


And I normally don't take the entire python library with me. I just
take 'jython.jar' so I can distribute it easier.

--
Ramza from Atlanta
http://www.newspiritcompany.com
Aug 9 '05 #3
But the function is also too limited. What I want to do is to run much
of my py scripts in jython as good as possible.

On 8/9/05, Ramza Brown <be**********@gmail.com> wrote:
could ildg wrote:
Good job~
I also like both java and py so I always focus on jython,
but now it's being moved forward kinda slow.
I'm looking forward to jython 2.4.

You're right, swing is great. wxpy is also wonderfu but it's so lack
of docs. I mainly work on windows so I use p4d(python for delphi), I
use delphi for UI and use py for some other works. p4d is magic, I
like it. And I recommend it to everyone who is familiar with both py
and delphi.

On 8/9/05, Ramza Brown <be**********@gmail.com> wrote:
I know you may frown at my use at java, but this is a pretty simple way
to create GUIs quickly, using Java's swing. I have some code for an
approach for integrating the swing GUI components and python. I threw
the project together in a couple of days, so it is not some massive
application. And, I have some little models(hehe). Anyway, if you want
to check out an approach for working with Jython, here it is.

Some questions, I do get asked, how do you us python code in java. I
normally don't like using my python objects in the java code.
Basically, there is never the *.java files. You can do everything in
python, it is a lot simpler, short of language constructs you can only
do in java.

This is a HTML code generator, you only need a java runtime.

http://www.newspiritcompany.com/phoenixproj.html

--
Ramza from Atlanta
http://www.newspiritcompany.com
--
http://mail.python.org/mailman/listinfo/python-list


And I normally don't take the entire python library with me. I just
take 'jython.jar' so I can distribute it easier.



--
Ramza from Atlanta
http://www.newspiritcompany.com
--
http://mail.python.org/mailman/listinfo/python-list

Aug 9 '05 #4
Ramza Brown wrote:
And I normally don't take the entire python library with me. I just
take 'jython.jar' so I can distribute it easier.


Agreed - if one is happy with the costs of java inter-operation, then
jython rocks the house. Otherwise, I could recommend PMW atop Tkinter,
since the python wrapping is better implemented and documented than
other guis and, for a given level of polish and functionality in a gui,
PMW/Tkinter gets the job done with less lines of code and less litres of
blood/sweat/tears.

--
Cheers
EB

--

One who is not a conservative by age 20 has no brain.
One who is not a liberal by age 40 has no heart.
Aug 9 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Dave Brueck | last post: by
38 posts views Thread by kbass | last post: by
36 posts views Thread by Andrea Griffini | last post: by
68 posts views Thread by Lad | last post: by
2 posts views Thread by Hal Vaughan | last post: by
112 posts views Thread by mystilleef | last post: by
83 posts views Thread by Licheng Fang | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.