File: test_awt.py

package info (click to toggle)
python-jpype 0.5.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,220 kB
  • sloc: cpp: 11,011; xml: 1,998; python: 1,677; java: 447; sh: 3; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 292 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from jpype import *
import time

def run():
	print 'Thread started'
	try:
		print repr(java.awt.Frame)
		javax.swing.JFrame("Test Frame").setVisible(True)
		shutdownGuiEnvironment()
	except JException, ex :
		print ex


startJVM(getDefaultJVMPath())

setupGuiEnvironment(run)