Guest User

Untitled

a guest
Jan 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. # This is all that is needed to take a screenshot with PyQt5
  2.  
  3. from PyQt5 import QtGui, QtWidgets
  4. app = QtWidgets.QApplication([])
  5. scr = app.primaryScreen()
  6. data = scr.grabWindow(0)
  7. data.save("blip.png")
Add Comment
Please, Sign In to add comment