开发者

Using Android's `Timer.schedule` in Python

开发者 https://www.devze.com 2022-12-18 06:01 出处:网络
Could someone explain how to use the Timer.schedule - that is used for scheduling tasks - in Python? Note t开发者_StackOverflowhat Python\'s time.sleep will not work in Android.time.sleep does work o

Could someone explain how to use the Timer.schedule - that is used for scheduling tasks - in Python?

Note t开发者_StackOverflowhat Python's time.sleep will not work in Android.


time.sleep does work on the Android Scripting Environment (at least for the last 5 releases or so). I've just tested it on the interpreter console.

On the other hand, some dialogs (like makeToast, for instance) won't hold the script execution while they're being displayed. Perhaps that's why you may be feeling time.sleep doesn't work.

0

精彩评论

暂无评论...
验证码 换一张
取 消