mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
HMGetBalloonWindow should try to return an existing window.
This commit is contained in:
parent
cdb3483744
commit
d8b382dc47
2 changed files with 3 additions and 1 deletions
|
@ -261,7 +261,7 @@ static PyObject *Help_HMGetBalloonWindow(_self, _args)
|
|||
_err = HMGetBalloonWindow(&window);
|
||||
if (_err != noErr) return PyMac_Error(_err);
|
||||
_res = Py_BuildValue("O&",
|
||||
WinObj_New, window);
|
||||
WinObj_WhichWindow, window);
|
||||
return _res;
|
||||
}
|
||||
|
||||
|
|
|
@ -51,6 +51,8 @@ class MyScanner(Scanner):
|
|||
|
||||
def makerepairinstructions(self):
|
||||
return [
|
||||
([("WindowPtr", "*", "OutMode")],
|
||||
[("ExistingWindowPtr", "*", "*")]),
|
||||
]
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue