#python simple projects in telugu
code:
import pyautogui
import tkinter as tk
root=tk.Tk()
canvas=tk.Canvas(root,width=300,height=300)
canvas.pack()
def takeScreenShot():
my=pyautogui.screenshot()
my.save("C:/Users/HI/Desktop/screenn/123456.png")
print('saved')
mybutton=tk.Button(text='TakeScreenShoot',command=takeScreenShot(),bg="pink",font=10)
canvas.create_window(150,150,window=mybutton)
root.mainloop()