monkeyPatches package
- monkeyPatches.applyMonkeyPatches()
Submodules
monkeyPatches.comtypesMonkeyPatches module
- monkeyPatches.comtypesMonkeyPatches.new_WINFUNCTYPE(restype, *argtypes, **kwargs)
A version of ctypes.WINFUNCTYPE that produces a WinFunctionType class whose instance will convert COMError into a CallCancelled exception when called as a function.
- monkeyPatches.comtypesMonkeyPatches.replace_WINFUNCTYPE() None
- monkeyPatches.comtypesMonkeyPatches.newVARIANT_value_fset(self, value)
- monkeyPatches.comtypesMonkeyPatches.support_byref_in_variants() None
- monkeyPatches.comtypesMonkeyPatches.new__getattr__(self, name)
- monkeyPatches.comtypesMonkeyPatches.lazybind_dynamic_to_basic() None
- monkeyPatches.comtypesMonkeyPatches.new__call__(self, *args, **kwargs)
- monkeyPatches.comtypesMonkeyPatches.support_invoke_zero() None
- monkeyPatches.comtypesMonkeyPatches.newCpbDel(self)
- monkeyPatches.comtypesMonkeyPatches.replace_cpb_del() None
- monkeyPatches.comtypesMonkeyPatches.newVARIANT_value_fget(self)
- monkeyPatches.comtypesMonkeyPatches.replace_VARIAN_value_fget() None
- monkeyPatches.comtypesMonkeyPatches.newGetTypeInfo(self, index, lcid=0)
- monkeyPatches.comtypesMonkeyPatches.replace_idispatch_getTypeInfo() None
- monkeyPatches.comtypesMonkeyPatches._check_version(actual, tlib_cached_mtime=None)
- monkeyPatches.comtypesMonkeyPatches.replace_check_version() None
- monkeyPatches.comtypesMonkeyPatches.vt_R8_to_c_double() None
- monkeyPatches.comtypesMonkeyPatches.appendComInterfacesToGenSearchPath() None
- monkeyPatches.comtypesMonkeyPatches.applyMonkeyPatches() None
monkeyPatches.wxMonkeyPatches module
- monkeyPatches.wxMonkeyPatches.apply(mainFrame, winUser, wx)
Patch wx.CallAfter to overcome an execution timing issue.
In wxPython >= 4.1, wx.CallAfter no longer executes callbacks while NVDA’s main thread is within a popup menu or message box. To work around this, monkeypatch wx.CallAfter to post a WM_NULL message to our top-level window after calling the original CallAfter, which causes wx’s event loop to wake up enough to execute the callback.