Skip to content

Commit ae2fd23

Browse files
author
River
committed
init
1 parent a92ef96 commit ae2fd23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/org/qpython/sample/MainActivity.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ public void onQPyExec(View v) {
6363
mBundle.putString("act", "onPyApi");
6464
mBundle.putString("flag", "onQPyExec"); // any String flag you may use in your context
6565
mBundle.putString("param", ""); // param String param you may use in your context
66-
mBundle.putString("pycode", "print 'Hello world'"); // The String Python code
66+
67+
/*
68+
* The String Python code, you can put your py file in res or raw or intenet, so that you can get it the same way, which can make it scalable
69+
*/
70+
mBundle.putString("pycode", "print 'Hello world'");
6771

6872
intent.putExtras(mBundle);
6973

0 commit comments

Comments
 (0)