AWT on OSX

16 views
Skip to first unread message

Andres Colubri

unread,
Feb 24, 2015, 5:07:29 PM2/24/15
to pyjni...@googlegroups.com
Hello there, 

I know PyJNIus has issues with AWT on OSX, see for instance https://github.com/kivy/pyjnius/issues/85, where a suggested workaround is to use -Djava.awt.headless=true.

However, if the goal is actually to be able to create an AWT Frame from Python, is there any way forward? The following code hangs when jnius simply tries to load the Frame class (runnning OSX 10.9.5, JDK 1.8.0_31):

from jnius import autoclass
print "hello jnius"
Frame = autoclass("java.awt.Frame")
print "bye jnius"

Any comments will be appreciated!

Andres


Reply all
Reply to author
Forward
0 new messages