GUIBRUSHR.GUI.WIDGET.MyPDF module¶
- class GUIBRUSHR.GUI.WIDGET.MyPDF.MyPDF(parent: ~typing.Any, row: int, column: int, width: int, height: int, path_default: [<class 'pathlib.Path'>, <class 'str'>], columnspan: int = 2, rowspan: int = 1, **kwargs: ~typing.Dict[str, ~typing.Any])[source]¶
Bases:
FrameA custom PDF viewer widget that displays PDF documents in a Frame.
This class creates a PDF viewer widget that can display PDF documents with customizable dimensions and styling. It uses a custom PDFViewer class for the actual PDF rendering.
- path_test_pdf¶
Path to the default test PDF file
- Type:
str
- width¶
Width of the PDF viewer
- Type:
int
- height¶
Height of the PDF viewer
- Type:
int
- __init__(parent: ~typing.Any, row: int, column: int, width: int, height: int, path_default: [<class 'pathlib.Path'>, <class 'str'>], columnspan: int = 2, rowspan: int = 1, **kwargs: ~typing.Dict[str, ~typing.Any]) None[source]¶
Initialize the MyPDF widget.
- Parameters:
parent – The parent widget
row – Row position in the parent’s grid
column – Column position in the parent’s grid
width – Width of the PDF viewer
height – Height of the PDF viewer
path_default – Base path for finding the test PDF file
columnspan – Number of columns the widget should span
rowspan – Number of rows the widget should span
**kwargs – Additional keyword arguments passed to the Frame widget