You can pass the following functions to s.start() in a dictionary:
import screen as s def init(): pass def update(): pass def draw(): pass def resized(w, h): pass def tap(x, y, id): pass def untap(x, y, id): pass def tapping(x, y, id): pass def tapped(x, y, id): pass s.start({ "loop": { "init": init, "update": update, "draw": draw, "resized": resized, "tap": tap, "untap": untap, "tapping": tapping, "tapped": tapped } })
Welcome to the PyCanvas Wiki
Deleting the wiki page "Callback functions" cannot be undone. Continue?