Skip to content

window.close() does not work #48

Description

@rosatheagraham

Hello, once I was able to close the choosen windows. I have changed the platforms, now I am not able to do that.

import pygetwindow as gw
window = gw.getWindowsWithTitle(title)[0]
print(window)
window.close()

the result of print(window) is below. Therefore, I understand that this is the right object to close.

<Win32Window left="10", top="10", width="945", height="1020", title="some title - Google Chrome">

but window.close() does not work. Nothing happens.

Is there any way to test it for further details?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions