Update screen_shot.py

This commit is contained in:
Mohd Arsh Ali 2022-09-25 15:02:44 +04:30 committed by GitHub
parent 41c4b962d4
commit 4d2dd3460f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ def screenshot_fun():
print("Screenshot program runs on console\nchange the sleep time if you can the screenshot captured the terminal also")
sleepTimer = 2
print(f"You've {sleepTimer} to minimize the terminal window")
sleep(2)
sleep(sleepTimer)
print("Captured the screen now")
screenshot_img = pyautogui.screenshot()
screenshot_img.save("screen.png")