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?
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 gwwindow = 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?