如何使用 Python 编写 OLE 组件脚本 [英] How to script an OLE component using Python
问题描述
我想使用 Python 编写一个应用程序脚本,该应用程序将自己宣传为提供 OLE 组件.我应该如何开始?
I would like to use Python to script an application that advertises itself as providing an OLE component. How should I get started?
我还不知道需要对我将访问的组件调用哪些方法.我应该使用 win32com 加载这些组件,然后在 IPython 中开始按tab"吗?
I don't yet know what methods I need to call on the COMponents I will be accessing. Should I use win32com to load those components, and then start pressing 'tab' in IPython?
推荐答案
"Python 和COM" 包含一个示例.OLE 与 COM 和 ActiveX 相关,因此您应该查找这些术语.
"Python and COM" contains an example. OLE is related to COM and ActiveX so you should look for those terms.
"Win32 上的 Python 编程" 是一本有用的书.还有一个Python Win32"邮件列表.
"Python Programming on Win32" is a useful book. There is also a "Python Win32" mailing list.
这篇关于如何使用 Python 编写 OLE 组件脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!