win32com support (follow up to previous thread)

Discussion in 'Python' started by Matt Warren, Apr 1, 2004.

  1. Matt Warren

    Matt Warren Guest

    Does this mean that there isn't a way to put a button into Visual
    Studio 6.0 and then have it execute python code all purely done in

    I.e could I write a python program that puts a button in the msdev
    toolbar like the example and then when its pushed reformats
    the current document, using the Application.Document.SelectAll() com
    methods or something like that.



    >> Generally, you can do a QueryInterface for the object. However, if
    >> the object does not support IDispatch, you will haver trouble - we
    >> don't support arbitrary interfaces when calling them, only
    >> implementing them.
    >> ob = ob._obj_.QueryInterface(

    >I take it the chances of this working are slim to none ?
    >> The GUID must be for a type library. If you run " -i",

    >> you will get a list of all valid typelibs you can use, and the

    >> for it.

    >Perhaps I should look at implementing the actual addin in C++ and

    >embed python into it so that most the work can be done by that.
    >Thanks for your help anyway
    Matt Warren, Apr 1, 2004
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page