Skip to content

Instantly share code, notes, and snippets.

@simianhacker
Created September 8, 2013 06:56
Show Gist options
  • Save simianhacker/6482523 to your computer and use it in GitHub Desktop.
Save simianhacker/6482523 to your computer and use it in GitHub Desktop.
import natlink
import natlinkmain
import pprint
def myCallback(type,args):
print "type: %s" % type;
pprint.pprint(args);
apply(natlinkmain.changeCallback, [type,args])
natlink.setChangeCallback(myCallback)
def unload():
natlink.setChangeCallback(natlinkmain.changeCallback)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment