I made a GUI in java swing, however I have made many python scripts for the functions of that GUI, is there anyway that I can use my python scripts to display the content in the Java Swing GUI interface? Thanks!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out Jython ( http://www.jython.org/ )
It’s a python implementation in Java.
In theory you shouldn’t have to change your python code (if it “good quality”), but in practice I suggest that you will have to make some changes here and there. I don’t personally use Jython, but all the various python implementations are usually more-or-less compatible, but not identical. You won’t be able to use python libraries that rely on the C ABI, but pure python scripts should work.