Last active
August 29, 2015 14:18
-
-
Save dmpop/78d2b3ce3abc66bc44fe to your computer and use it in GitHub Desktop.
QPython script to get word definitions via Google
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
#-*-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