Skip to content

Instantly share code, notes, and snippets.

@dmpop
Last active August 29, 2015 14:18
Show Gist options
  • Save dmpop/78d2b3ce3abc66bc44fe to your computer and use it in GitHub Desktop.
Save dmpop/78d2b3ce3abc66bc44fe to your computer and use it in GitHub Desktop.
QPython script to get word definitions via Google
#-*-coding:utf8;-*-
#qpy:console
#qpy:2
import androidhelper
droid = androidhelper.Android()
s = droid.dialogGetInput('Define', 'Word to define:').result
droid.startActivity('android.intent.action.VIEW', 'https://www.google.com/search?q=define:' + s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment