ocarina/ocarina/callbacks.py
Bryan Schumaker d72d16f39d ocarina: Added callback methods
I eventually want to remove the event system from libsaria.  My first
step in doing this is to move usage of the event system in Ocarina to
one place.
2011-05-01 12:11:42 -04:00

15 lines
253 B
Python

# Bryan Schumaker (4 / 20 / 2011)
import libsaria
from ocarina.body import footer
invite = libsaria.event.invite
def on_play(*args):
footer.on_play()
invite("POSTPLAY", on_play)
def on_pause(*args):
footer.on_pause()
invite("POSTPAUSE", on_pause)