from PyQt5.QtWidgets import QApplication
import sys
if __name__ == "__main__":
app = QApplication(sys.argv)
screen=QApplication.primaryScreen()
pix=screen.grabWindow(QApplication.desktop().winId())
pix.save("123.jpg")
Pyqt5屏幕截图
最新推荐文章于 2024-09-06 15:39:53 发布