Module Import alias Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BinOpAdd NameLoad Num Assign AttributeStore NameLoad attr BinOpAdd Num BinOpMult Num NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Delete NameDel NameDel Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If Num body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad ImportFrom alias alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest N/A time N/A comtypes.client N/A comtypes.test N/A N/A N/A N/A comtypes test requires ui Test N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self _events N/A N/A DocumentChange N/A N/A self this N/A args N/A N/A N/A N/A N/A self _events append DocumentChange N/A test N/A N/A self N/A N/A N/A word N/A N/A N/A comtypes client CreateObject Word.Application comtypes.gen Word N/A w2 N/A N/A N/A comtypes client GetActiveObject Word.Application N/A conn N/A N/A N/A comtypes client GetEvents w2 sink self N/A N/A word Visible 1 N/A doc N/A N/A N/A word Documents Add N/A wrange N/A N/A doc Range N/A i N/A range 10 N/A N/A N/A N/A wrange InsertAfter N/A Hello from comtypes %d
 i N/A N/A i para N/A enumerate N/A doc Paragraphs N/A N/A f N/A N/A para Range Font N/A N/A f ColorIndex N/A i 1 N/A N/A f Size N/A 12 N/A 2 i N/A N/A N/A time sleep 0.5 N/A N/A N/A doc Close SaveChanges N/A Word wdDoNotSaveChanges N/A N/A N/A word Quit N/A word w2 N/A N/A N/A time sleep 0.5 N/A test_commandbar N/A N/A self N/A N/A N/A word N/A N/A N/A comtypes client CreateObject Word.Application N/A N/A word Visible 1 N/A tb N/A N/A word CommandBars Standard N/A btn N/A N/A tb Controls N/A 1 N/A 0 N/A N/A evt N/A N/A N/A N/A word VBE Events CommandBarEvents btn comtypes.gen Word VBIDE N/A N/A N/A N/A comtypes client ShowEvents evt interface N/A VBIDE _dispCommandBarControlEvents N/A N/A N/A N/A comtypes client ShowEvents evt N/A N/A N/A word Quit N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main