def OnProgressComplete(self, hwnd, msg, wparam, lparam):
        """Respond to the a message signalling that all processing is
        now complete by re-enabling the ok button, disabling cancel,
        and setting focus to the ok so a return or space will close
        the dialog.
        """
        try:
            message = marshal.loads(win32gui.PyGetString(lparam, wparam))
        except __HOLE__:
            message = "- Complete -"
        self._set_item(self._progress_id, message)
        self._enable(win32con.IDCANCEL, False)
        self._enable(win32con.IDOK, True)
        PostMessage(self.hwnd, win32con.WM_QUIT, 0, 0)
        #~ wrapped(win32gui.SetFocus, wrapped(win32gui.GetDlgItem, hwnd, win32con.IDOK))
dataset/ETHPy150Open tjguk/winsys/winsys/dialogs.py/Dialog.OnProgressComplete