HMGetBalloonWindow should try to return an existing window.

This commit is contained in:
Jack Jansen 2000-08-25 22:04:24 +00:00
parent cdb3483744
commit d8b382dc47
2 changed files with 3 additions and 1 deletions

View File

@ -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;
}

View File

@ -51,6 +51,8 @@ class MyScanner(Scanner):
def makerepairinstructions(self):
return [
([("WindowPtr", "*", "OutMode")],
[("ExistingWindowPtr", "*", "*")]),
]
if __name__ == "__main__":