diff options
| author | blob8108 <spaaam42@gmail.com> | 2014-01-07 01:25:17 +0000 |
|---|---|---|
| committer | blob8108 <spaaam42@gmail.com> | 2014-01-07 01:25:17 +0000 |
| commit | efea8b4700749b1a3d985f42e30442c5e49c7271 (patch) | |
| tree | ae250d8ce01e8a31aa33b6e2e165eea581e58b9f /example.py | |
| parent | 78195c3ebf9b2b4857fcb64952cbce14a9763aa2 (diff) | |
| download | blockext-efea8b4700749b1a3d985f42e30442c5e49c7271.tar.gz blockext-efea8b4700749b1a3d985f42e30442c5e49c7271.zip | |
Make `problem` and `reset` accessible in Snap! too
Fixes #7
Diffstat (limited to 'example.py')
| -rw-r--r-- | example.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -36,7 +36,8 @@ def id(text): @problem def my_problem(): - return "The Scratch Sensor board is not connected. Foo." + if time.time() % 8 > 4: + return "The Scratch Sensor board is not connected. Foo." @reset def my_reset(): |
