File: Incrementor

package info (click to toggle)
python-pyo 1.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,692 kB
  • sloc: ansic: 137,415; python: 135,293; makefile: 390; cpp: 242; sh: 163
file content (1 line) | stat: -rw-r--r-- 190 bytes parent folder | download | duplicates (7)
1
snippet = {'shortcut': u'Shift-Alt-8', 'value': u'count = 0\ndef incrementor():\n    global count\n    count += 1\n    print(count)\n\npat = Pattern(function=incrementor, time=1).play()\n'}