Skip to content

Commit 00332ac

Browse files
committed
Up
1 parent 1d06ce8 commit 00332ac

File tree

7 files changed

+19
-7
lines changed

7 files changed

+19
-7
lines changed

docs/_sources/en/guide_androidhelpers.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ Clipboard APIs
2525

2626
::
2727

28-
sample code to show setClipboard/getClipboard
28+
from androidhelper import Android
29+
droid = Android()
30+
31+
#setClipboard
32+
droid.setClipboard("Hello World")
33+
34+
#getClipboard
35+
clipboard = droid.getClipboard().result
2936

3037

3138
Intent & startActivity APIs

docs/en/guide_androidhelpers.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,12 @@ <h2>Clipboard APIs<a class="headerlink" href="#clipboard-apis" title="Permalink
174174
</tbody>
175175
</table>
176176
</dd></dl>
177-
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">sample</span> <span class="n">code</span> <span class="n">to</span> <span class="n">show</span> <span class="n">setClipboard</span><span class="o">/</span><span class="n">getClipboard</span>
177+
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">androidhelper</span> <span class="k">import</span> <span class="n">Android</span>
178+
<span class="n">droid</span> <span class="o">=</span> <span class="n">Android</span><span class="p">()</span>
179+
<span class="c1">#setClipboard</span>
180+
<span class="n">droid</span><span class="o">.</span><span class="n">setClipboard</span><span class="p">(</span><span class="s2">&quot;Hello World&quot;</span><span class="p">)</span>
181+
<span class="c1">#getClipboard</span>
182+
<span class="n">clipboard</span> <span class="o">=</span> <span class="n">droid</span><span class="o">.</span><span class="n">getClipboard</span><span class="p">()</span><span class="o">.</span><span class="n">result</span>
178183
</pre></div>
179184
</div>
180185
</div>

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/qpy-easter-egg.png

-1.25 KB
Binary file not shown.

qpython-docs/source/en/faq.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ FAQ
99
- You need to root the android device first, then soure the env vars (Just like the qpython wiki link you mentioned) and execute the /data/data/org.qpython.qpy/bin/python or /data/data/org.qpython.qpy/bin/python-android5 (for android 5 above)
1010

1111

12-
`Case sample <http://stackoverflow.com/questions/32110131/how-to-run-android-qpython-script-from-cmd-droidedit-terminal>`_
12+
`Share to case sample <http://stackoverflow.com/questions/32110131/how-to-run-android-qpython-script-from-cmd-droidedit-terminal>`_
1313

1414

1515

@@ -20,7 +20,7 @@ Even you could import pygame in QPython, but QPython doesn't support pygame now.
2020
We will consider to support it later, please follow us on facebook to get it's progress.
2121

2222

23-
`Case sample <http://stackoverflow.com/questions/30489732/qpythonpygame-segmentation-fault>`_
23+
`Pygame case sample <http://stackoverflow.com/questions/30489732/qpythonpygame-segmentation-fault>`_
2424

2525

2626

qpython-docs/source/en/guide_contributors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ How to launch a local QPython users community
2525
================================================================
2626

2727
How to organise a local qpython user sharing event
28-
----------------------------------------
28+
---------------------------------------------------
2929

3030
How to became the developer member
3131
====================================

qpython-docs/source/en/guide_developers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Editor
1212

1313

1414
File browsing
15-
------------
15+
---------------
1616

1717

1818
QRCode reader

0 commit comments

Comments
 (0)