[Chennaipy] Chennaipy - Monday Module - 25 Jul 2022

selvi dct selvi.dct at gmail.com
Mon Aug 1 13:40:36 EDT 2022


Date: 25 Jul 2022


Module: pyscreenshot


Installation: pip install pyscreenshot


About: Pyscreenshot tries to allow to take screenshots without installing
3rd party libraries. It is cross-platform.


Sample Source Code:

"Grab the whole screen"

import pyscreenshot as ImageGrab


# grab fullscreen

im = ImageGrab.grab()


# save image file

im.save("fullscreen.png")


Execution:

$ python pyscreenshot_sample.py


Output:

# screen shot will be created and saved in the fullscreen.png file

$ ls -lrt fullscreen.png


Reference: https://pypi.org/project/pyscreenshot/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/chennaipy/attachments/20220801/d929eb4f/attachment.html>


More information about the Chennaipy mailing list