[Tutor] COM(ActiveX) class - how to list methods?

Alan Gauld alan.gauld at btinternet.com
Wed Mar 18 18:24:05 CET 2015


On 18/03/15 16:33, Solomon Vimal wrote:

> I am a newbie in python. I am more used to MATLAB.
>
> In MATLAB there is a function methodsview(h) that will pop up a window
> listing out all the methods of a handle (h) referring to a Windows COM
> object - in my case, a software controller.

If its a COM question you are probably better off asking
on the Python Windows mailing list.

It's available on gmane.org as gmane.comp.python.windows.

> Is there is a similar function in Python?  Maybe there is a generic
> function that lists methods applicable to a class.

There is no generic solution that works with COM.
However, if you are accessing COM via pythonwin
(aka PyWin32) you will have access to the Pythonwin IDE
which includes a COM object browser which will,
I think, give you what you want.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list