Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ScreenshotTaker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is python script of screenshot taker.
It takes the screenshot of the page you are in by clicking 'Take Screenshot' button once you run it.
This is the task which most people use in day to day lives
19 changes: 19 additions & 0 deletions ScreenshotTaker/ScreenshotTaker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import pyautogui
import tkinter as tk
from tkinter.filedialog import *

root=tk.Tk()

canvas1=tk.Canvas(root,width=300,height=300)
canvas1.pack()

def takeScreenshot():
myScreenshot=pyautogui.screenshot()
save_path=asksaveasfilename()
myScreenshot.save(save_path+"_screenshot.png")

myButton=tk.Button(text="Take Screenshot", command=takeScreenshot,font=10)
canvas1.create_window(150,150,window=myButton)

root.mainloop()