import PyDuck import api from ctypes import * mc = api.myClass() print mc def myFunc(*args, **kwargs): print ">>> myFunc" print " args to myFunc",args[0] print " frame_header.hdrSize =",args[0].frame_header.hdrSize print "<<< myFunc" mc.register_callback(myFunc); mc.boo() s = api.Frame() print s print s.frame_header.hdrSize s = mc.crap() print s.frame_header print s.frame_header.hdrSize