mirror of https://github.com/kivy/pyjnius.git
add desktop subsection in README
This commit is contained in:
parent
30b083b362
commit
1588c6040a
17
README.md
17
README.md
|
@ -23,6 +23,19 @@ world
|
||||||
hello
|
hello
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Usage on desktop
|
||||||
|
----------------
|
||||||
|
|
||||||
|
You need java JDK installed (openjdk will do), cython, and make to build it
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
That's it! you can run the tests with
|
||||||
|
|
||||||
|
make tests
|
||||||
|
|
||||||
|
To make sure everything is running right.
|
||||||
|
|
||||||
Usage with python-for-android
|
Usage with python-for-android
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
|
@ -75,7 +88,7 @@ Advanced example
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
When you use autoclass, it will discover all the methods and fields within the object, and resolve it.
|
When you use autoclass, it will discover all the methods and fields within the object, and resolve it.
|
||||||
It's better to declare and use only what you need (for the moment).
|
For now, it can be better to declare and use only what you need.
|
||||||
The previous example can be done manually:
|
The previous example can be done manually:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
@ -97,4 +110,4 @@ Hardware.accelerometerEnable()
|
||||||
for x in xrange(20):
|
for x in xrange(20):
|
||||||
print Hardware.accelerometerReading()
|
print Hardware.accelerometerReading()
|
||||||
sleep(.1)
|
sleep(.1)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue