.. include:: headings.inc .. _PreviewCanvas: ========================================================================================================================================== |phoenix_title| **PreviewCanvas** ========================================================================================================================================== A preview canvas is the default canvas used by the print preview system to display the preview. .. seealso:: :ref:`PreviewFrame`, :ref:`PreviewControlBar`, :ref:`PrintPreview` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **PreviewCanvas** .. raw:: html

Inheritance diagram of PreviewCanvas

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~PreviewCanvas.__init__` Constructor. :meth:`~PreviewCanvas.OnPaint` Calls :meth:`PrintPreview.PaintPage` to refresh the canvas. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: PreviewCanvas(ScrolledWindow) A preview canvas is the default canvas used by the print preview system to display the preview. **Possible constructors**:: PreviewCanvas(preview, parent, pos=DefaultPosition, size=DefaultSize, style=0, name="canvas") .. method:: __init__(self, preview, parent, pos=DefaultPosition, size=DefaultSize, style=0, name="canvas") Constructor. :param `preview`: :type `preview`: PrintPreview :param `parent`: :type `parent`: Window :param `pos`: :type `pos`: Point :param `size`: :type `size`: Size :param `style`: :type `style`: long :param `name`: :type `name`: string .. method:: OnPaint(self, event) Calls :meth:`PrintPreview.PaintPage` to refresh the canvas. :param `event`: :type `event`: PaintEvent