4
I would like to make a program that screenshots the screen ( screen photo) in Python.
I found the following code:
import pyscreenshot as ImageGrab
if __name__ == "__main__":
# fullscreen
im=ImageGrab.grab()
im.show()
The code does nothing (apparently gets stuck)!
What does it mean: if __name__ == "__main__":
?
Linux Backbox Usage
Here worked. On your second question: http://answall.com/questions/92586/no-final-do-c%C3%b3digo-para-que-serve-a-express%C3%a3o-if-name-main
– Pablo Almeida