userista
Aug 13, 2015 - 07:54
Weird bug - the second time I run this script Pythonista freezes and hangs until it crashes. (Try to run it twice in a row.)
# coding: utf-8
import dialogs
import location
def foo():
return 'foo'
def foot():
return 'foot'
def food():
return 'food'
location.start_updates()
#choose an item
func = dialogs.list_dialog(title='Choose a datasource', items=[{'title':'foo', 'func':foo},{'title':'foot', 'func':foot},{'title':'food', 'func':food}])
location.stop_updates()