def MakeModuleForTypelibInterface(typelib_ob, progressInstance=None, bForDemand=bForDemandDefault, bBuildHidden=1):
 import makepy
 try:
  makepy.GenerateFromTypeLibSpec(typelib_ob, progressInstance=progressInstance, bForDemand=bForDemandDefault, bBuildHidden=bBuildHidden)
 except pywintypes.com_error:
  return None
 tla = typelib_ob.GetLibAttr()
 guid = tla[0]
 lcid = tla[1]
 major = tla[3]
 minor = tla[4]
 return GetModuleForTypelib(guid, lcid, major, minor)

def MakeModuleForTypelibInterface ( typelib_ob , progressInstance = None , bForDemand = bForDemandDefault , bBuildHidden = 1 ) : import makepy try : makepy . GenerateFromTypeLibSpec ( typelib_ob , progressInstance = progressInstance , bForDemand = bForDemandDefault , bBuildHidden = bBuildHidden ) except pywintypes . com_error : return None tla = typelib_ob . GetLibAttr ( ) guid = tla [ 0 ] lcid = tla [ 1 ] major = tla [ 3 ] minor = tla [ 4 ] return GetModuleForTypelib ( guid , lcid , major , minor )
generate support for a type library .