Skip to content

Instantly share code, notes, and snippets.

@zeffii
Forked from anonymous/punga.py
Created February 15, 2015 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/d815a939925d0014f36d to your computer and use it in GitHub Desktop.
Save zeffii/d815a939925d0014f36d to your computer and use it in GitHub Desktop.
def mouse_change(func):
def add_mouse_change(*args):
print('mouse wait')
func(*args)
print('mouse normal')
return add_mouse_change
@mouse_change
def monkey_business(a, b, c):
print('a={0}, b={1}, c={2}'.format(a, b, b))
monkey_business(10, 20, 30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment