Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. def show_comkeys(comobj):
  2.  
  3.     for key in dir(comobj):
  4.         try:
  5.             method = getattr(comobj,key)
  6.         except:
  7.             pass
  8.         if str(type(method)) == "<type 'instance'>":
  9.             print(key)
  10.             for sub_method in dir(method):
  11.                 if not sub_method.startswith("_") and not "clsid" in sub_method.lower():
  12.                     print("\t"+sub_method)
  13.         else:
  14.             print("\t",method)
  15.  
  16. ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement