MkWidgetScreenShot
Base classes
Name | Children | Inherits |
---|---|---|
MkBinaryImage mknodes.basenodes.mkbinaryimage Image carrying the data by itself. |
⋔ Inheritance diagram
graph TD
1473367135056["prettyqtmarkdown.MkWidgetScreenShot"]
1473287587088["mkbinaryimage.MkBinaryImage"]
1473287553904["mkimage.MkImage"]
1473287579280["mknode.MkNode"]
1473287420192["node.Node"]
140713234304496["builtins.object"]
1473287587088 --> 1473367135056
1473287553904 --> 1473287587088
1473287579280 --> 1473287553904
1473287420192 --> 1473287579280
140713234304496 --> 1473287420192
🛈 DocStrings
Bases: MkBinaryImage
Node to easily create and embed a widget screenshot into docs.
Source code in prettyqt\prettyqtmarkdown\mkwidgetscreenshot.py
__init__(widget: widgets.QWidget, caption: str = '', path: str | None = None, title: str = 'Image title', header: str = '', resize_to: datatypes.SizeType | None = None)
Constructor.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
widget |
QWidget
|
Widget to make a screenshot from |
required |
caption |
str
|
Image caption |
''
|
path |
str | None
|
Image path |
None
|
title |
str
|
Image title |
'Image title'
|
header |
str
|
Section header |
''
|
resize_to |
SizeType | None
|
widget screenshot size |
None
|