Skip to content

Commit

Permalink
adjust comments (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
junkmd authored Dec 22, 2022
1 parent 5b0dc8d commit a6fc08b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions comtypes/client/_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def FindOutgoingInterface(source):
logger.debug("%s using sinkinterface from clsid %s", source, interface)
return interface

## interface = find_single_connection_interface(source)
## if interface:
## return interface
# interface = find_single_connection_interface(source)
# if interface:
# return interface

raise TypeError("cannot determine source interface")

Expand Down Expand Up @@ -260,7 +260,7 @@ def PumpEvents(timeout):
handles = _handles_type(hevt)
RPC_S_CALLPENDING = -2147417835

## @ctypes.WINFUNCTYPE(ctypes.c_int, ctypes.c_uint)
# @ctypes.WINFUNCTYPE(ctypes.c_int, ctypes.c_uint)
def HandlerRoutine(dwCtrlType):
if dwCtrlType == 0: # CTRL+C
ctypes.windll.kernel32.SetEvent(hevt)
Expand Down
10 changes: 5 additions & 5 deletions comtypes/client/dynamic.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def _FlagAsMethod(self, *names):
def __getattr__(self, name):
if name.startswith("__") and name.endswith("__"):
raise AttributeError(name)
## tc = self._comobj.GetTypeInfo(0).QueryInterface(comtypes.typeinfo.ITypeComp)
## dispid = tc.Bind(name)[1].memid
# tc = self._comobj.GetTypeInfo(0).QueryInterface(comtypes.typeinfo.ITypeComp)
# dispid = tc.Bind(name)[1].memid
dispid = self._ids.get(name)
if not dispid:
dispid = self._comobj.GetIDsOfNames(name)[0]
Expand Down Expand Up @@ -146,9 +146,9 @@ def __setattr__(self, name, value):
def __iter__(self):
return _Collection(self.__enum())

## def __setitem__(self, index, value):
## self._comobj.Invoke(-3, index, value,
## _invkind=comtypes.automation.DISPATCH_PROPERTYPUT|comtypes.automation.DISPATCH_PROPERTYPUTREF)
# def __setitem__(self, index, value):
# self._comobj.Invoke(-3, index, value,
# _invkind=comtypes.automation.DISPATCH_PROPERTYPUT|comtypes.automation.DISPATCH_PROPERTYPUTREF)

class _Collection(object):
def __init__(self, enum):
Expand Down
2 changes: 1 addition & 1 deletion comtypes/client/lazybind.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __init__(self, comobj, tinfo):
self.__dict__["_tinfo"] = tinfo
self.__dict__["_tcomp"] = tinfo.GetTypeComp()
self.__dict__["_tdesc"] = {}
## self.__dict__["_iid"] = tinfo.GetTypeAttr().guid
# self.__dict__["_iid"] = tinfo.GetTypeAttr().guid

def __bind(self, name, invkind):
"""Bind (name, invkind) and return a FuncDesc instance or
Expand Down

0 comments on commit a6fc08b

Please sign in to comment.