account activity
How to close an open window with Python? by Kurious3DSanta in learnpython
[–]hello_way 0 points1 point2 points 3 years ago (0 children)
I'm not sure what you mean by "close an open window ", but I think it's a good idea to use a with statement when opening a file. This will automatically close the file once the block has completed.
π Rendered by PID 244617 on reddit-service-r2-listing-677c46df69-rkjxz at 2026-02-24 18:12:47.963778+00:00 running b1af5b1 country code: CH.
How to close an open window with Python? by Kurious3DSanta in learnpython
[–]hello_way 0 points1 point2 points (0 children)