java - Importing javax.swing in python -


from javax.swing import jframe   class mainscreen:     frame = jframe('hello, world!')     frame.defaultcloseoperation = jframe.exit_on_close     frame.size = (300, 300)     frame.setvisible(true) 

this python code, here trying import jframe. facing follwong problem:

traceback (most recent call last):   file "/users/hemanths/dropbox/personalproject/monopoly/views/mainscreen.py", line 2, in <module>     javax.swing import jframe importerror: no module named javax.swing 

can explain how import java libraries in python. , please let me know mistake did here.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -