4

I am planning to use PyQt with Jython because my app is based on Java. I have installed Jython successfully. But i am lacking in including PyQt with Jython.

Any suggestions would be appreciative!

P.S: I am totally new to Python.

Thanks

2
  • Are you trying to create a GUI wrapper around an separate application written in a separate language or are you trying to add a GUI to an existing application? Commented Nov 2, 2011 at 16:41
  • @Kaleb Pederson: Not like that. I just wanted to use the offline browser api in Qt.
    – user405398
    Commented Nov 3, 2011 at 12:57

1 Answer 1

3


Hi,
you cannot use PyQt with Jython.
PyQt are Qt bindings for 'standard' Python implementation (CPython).
If you want to use Qt in your Java app,
then you can take a look at Qt Jambi (Qt bindings for Java, deprecated in 2009).

4
  • 1
    Keep in mind that Qt Jambi is no longer supported directly by Nokia. Commented Nov 2, 2011 at 16:37
  • +1 PyQt is compiled against CPython libraries while Jython is a pure Java implementation of the Python interpreter. Since Jython doesn't use the CPython libraries, you can't use PyQt. Commented Nov 2, 2011 at 16:52
  • @pedrotech: Actually i started with Qt jambi. I was having a very hard time with setting up jambi in my machine. Then i came to know about spynner, so i came to jython. Thanks for your response. Now, again i am going try jambi.
    – user405398
    Commented Nov 3, 2011 at 12:56
  • I stumbled across this Q&A, as I am looking for a way to use Qt with Java. My first thought was PyQt (as it seems to be the most stable/popular/widely supported Qt binding in third party language). But having realize that what I really wanted was a Qt binding for Java, it seems like Qt Jambi is the way to go. Will try using the 4.8.5 beta 4 though... thanks!
    – swdev
    Commented Feb 11, 2014 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.