Skip to content

Instantly share code, notes, and snippets.

Created February 15, 2015 09:16
Show Gist options
  • Save anonymous/023b18ae22cd80ce99bb to your computer and use it in GitHub Desktop.
Save anonymous/023b18ae22cd80ce99bb to your computer and use it in GitHub Desktop.
test
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