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.
- Variables:
path_test_pdf (str) – Path to the default test PDF file
width (int) – Width of the PDF viewer
height (int) – Height of the PDF viewer
pdf_widget (PDFViewer) – The underlying PDF viewer widget
- __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