[python-win32] 2010 com addin and IRibbonExtensibilty

robert2682 robert2682 at verizon.net
Wed Dec 8 03:18:57 CET 2010


Christian K. wrote:

<clip ...>
> I even fail to get that far. What do I have to change here to be able 
> access the new style toolbars?
>
> class Addin:
>     _com_interfaces_ = ['_IDTExtensibility2']
>     _public_methods_ = []
>     _reg_clsctx_ = pythoncom.CLSCTX_INPROC_SERVER
>     _reg_clsid_ = "{D371B22C-78B1-4271-8C10-60AE4719CEE5}"
>     _reg_progid_ = "my_addin"
>     _reg_policy_spec_ = "win32com.server.policy.EventHandlerPolicy"
>
> I must admit that I have neither read M.Hammonds book nor am I a 
> windows programmer.
>

It's quite different.  For example, you have to write XML for the 
controls for the ribbon.  I'll work up the sample program I'd been 
meaning to do and post that.  It may be a day or 2 as I have to redo my 
working code.

<clip ...>
> Let us continue the discussion here. I would have been glad if I had 
> found
> something about that topic while searching.
>
> Regards, Christian
>

Bob



More information about the python-win32 mailing list