[pywin32-checkins] pywin32/Pythonwin/pywin/scintilla view.py,1.23,1.24
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2006-01-10 05:03:58
|
Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21957 Modified Files: view.py Log Message: [ 1186128 ] Adding dynamic dispatch methods to AutoComplete list Index: view.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/view.py,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** view.py 20 Jan 2004 22:15:15 -0000 1.23 --- view.py 10 Jan 2006 05:03:49 -0000 1.24 *************** *** 426,429 **** --- 426,442 ---- except AttributeError: pass + # The object might be a pure COM dynamic dispatch with typelib support - lets see if we can get its props. + if hasattr(ob, "_oleobj_"): + try: + for iTI in xrange(0,ob._oleobj_.GetTypeInfoCount()): + typeInfo = ob._oleobj_.GetTypeInfo(iTI) + typeAttr = typeInfo.GetTypeAttr() + for iFun in xrange(0,typeAttr.cFuncs): + funDesc = typeInfo.GetFuncDesc(iFun) + funName = typeInfo.GetNames(funDesc.memid)[0] + if not items_dict.has_key(funName): + items_dict[funName] = None + except: + pass except: win32ui.SetStatusText("Error attempting to get object attributes - %s" % (`sys.exc_info()[0]`,)) |