Created
February 16, 2014 19:29
-
-
Save dvas0004/9039358 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidhelper | |
from kivy.app import App | |
from kivy.uix.button import Button | |
class TestApp(App): | |
def buttonPress(self,instance): | |
droid = androidhelper.Android() | |
line = droid.dialogGetInput() | |
s = 'Hello %s' % line.result | |
droid.makeToast(s) | |
def build(self): | |
btn1 = Button(text='Hello world 1') | |
btn1.bind(on_press=self.buttonPress) | |
return btn1 | |
TestApp().run() |
It's working with qpython, but not with qpython 3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Although your post is already old. I wonder how it works? I have installed both, kivy launcher and qpython 3, but starting your script from qpython, it raises an error: No module named kivy. Did you set a path variable?