-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathScreenshot taker.py
More file actions
27 lines (21 loc) · 904 Bytes
/
Copy pathScreenshot taker.py
File metadata and controls
27 lines (21 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import pyautogui
from tkinter import Tk, Button, Label
# Create a tkinter window
win = Tk()
win.title("LoopGlitch Screenshoter")
# Callback function to take a screenshot
def take_screenshot():
screenshot = pyautogui.screenshot()
screenshot.save('screenshot.png') # Save the screenshot as 'screenshot.png' in the current directory
status_label.config(text="Screenshot saved as 'screenshotbyGOKUL.png'")
# Create a label for instructions
instructions_label = Label(win, text="Click the button to take a screenshot.")
instructions_label.pack(pady=10)
# Create a button to trigger the screenshot
screenshot_button = Button(win, text="Take Screenshot", command=take_screenshot)
screenshot_button.pack(pady=5)
# Create a label to display status
status_label = Label(win, text="", fg="green")
status_label.pack(pady=5)
# Start the tkinter event loop
win.mainloop()