pyqtribbon.screenshotwindow

Module Contents

Classes

RibbonScreenShotWindow

This class is just for taking a screenshot of the window, the window will be closed 0.1s after it is shown.

class pyqtribbon.screenshotwindow.RibbonScreenShotWindow(fileName: str = 'shot.jpg', *args, **kwargs)[source]

Bases: qtpy.QtWidgets.QMainWindow

This class is just for taking a screenshot of the window, the window will be closed 0.1s after it is shown.

setScreenShotFileName(fileName: str)[source]

Set the file name for the screenshot.

Parameters:

fileName – The file name for the screenshot.

takeScreenShot()[source]

Take a screenshot of the window.