473,406 Members | 2,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 1520
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave Brueck | last post by:
Below is some information I collected from a *small* project in which I wrote a Python version of a Java application. I share this info only as a data point (rather than trying to say this data...
38
by: kbass | last post by:
In different articles that I have read, persons have constantly eluded to the productivity gains of Python. One person stated that Python's productivity gain was 5 to 10 times over Java in some in...
46
by: Jon Perez | last post by:
Can one run a 1.5 .pyc file with the 2.x version interpreters and vice versa? How about running a 2.x .pyc using a 2.y interpreter?
36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
68
by: Lad | last post by:
Is anyone capable of providing Python advantages over PHP if there are any? Cheers, L.
2
by: Hal Vaughan | last post by:
I'm self taught and most of what I've been working on for the past several years has been entirely in Perl and Java. I've noticed that I can code about 5 times faster in Perl than Java, in part...
112
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them...
83
by: Licheng Fang | last post by:
Hi, I'm learning STL and I wrote some simple code to compare the efficiency of python and STL. //C++ #include <iostream> #include <string> #include <vector> #include <set> #include...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.