Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/c/o/comtypes-1.0.0/comtypes/test/test_word.py   comtypes(Download)
    def test(self):
        # create a word instance
        word = comtypes.client.CreateObject("Word.Application")
        from comtypes.gen import Word
 
        if 0: # word does not allow programmatic access, so this does fail
            evt = word.VBE.Events.CommandBarEvents(btn)
            from comtypes.gen import Word, VBIDE
            comtypes.client.ShowEvents(evt, interface=VBIDE._dispCommandBarControlEvents)
            comtypes.client.ShowEvents(evt)