mirror of https://github.com/kivy/pyjnius.git
parent
7319fab9e5
commit
3ae545d21a
19
README.md
19
README.md
|
@ -1,6 +1,25 @@
|
||||||
PyJNIus
|
PyJNIus
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
description
|
||||||
|
-----------
|
||||||
|
|
||||||
Python module to access Java class as Python class, using JNI.
|
Python module to access Java class as Python class, using JNI.
|
||||||
|
|
||||||
(Work in progress.)
|
(Work in progress.)
|
||||||
|
|
||||||
|
quick overview
|
||||||
|
--------------
|
||||||
|
|
||||||
|
>>> from jnius.reflect import autoclass
|
||||||
|
>>> autoclass('java.lang.System').out.println('Hello world')
|
||||||
|
Hello world
|
||||||
|
|
||||||
|
>>>Stack = autoclass('java.util.Stack')
|
||||||
|
>>>stack = Stack()
|
||||||
|
>>>stack.push('hello')
|
||||||
|
>>>stack.push('world')
|
||||||
|
>>>print stack.pop()
|
||||||
|
world
|
||||||
|
>>>print stack.pop()
|
||||||
|
hello
|
Loading…
Reference in New Issue