Skip to content

Instantly share code, notes, and snippets.

@dvas0004
Created February 16, 2014 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvas0004/9039358 to your computer and use it in GitHub Desktop.
Save dvas0004/9039358 to your computer and use it in GitHub Desktop.
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()
@XRoemer
Copy link

XRoemer commented Feb 12, 2015

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?

@XRoemer
Copy link

XRoemer commented Feb 13, 2015

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