Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is all that is needed to take a screenshot with PyQt5
- from PyQt5 import QtGui, QtWidgets
- app = QtWidgets.QApplication([])
- scr = app.primaryScreen()
- data = scr.grabWindow(0)
- data.save("blip.png")
Add Comment
Please, Sign In to add comment