phoenix_title wx.PreviewCanvas

A preview canvas is the default canvas used by the print preview system to display the preview.

See also

wx.PreviewFrame, wx.PreviewControlBar, wx.PrintPreview


class_hierarchy Class Hierarchy

Inheritance diagram for class PreviewCanvas:

method_summary Methods Summary

__init__

Constructor.

GetClassDefaultAttributes

OnPaint

Calls wx.PrintPreview.PaintPage to refresh the canvas.


api Class API

class wx.PreviewCanvas(ScrolledWindow)

Possible constructors:

PreviewCanvas(preview : PrintPreview, parent : Window, pos:
              Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name:
              str="canvas") -> None

A preview canvas is the default canvas used by the print preview system to display the preview.


Methods

__init__(self, preview : PrintPreview, parent : Window, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str="canvas")

Constructor.

Parameters:
Return type:

None



static GetClassDefaultAttributes(variant: WindowVariant=WINDOW_VARIANT_NORMAL)
Parameters:

variant (WindowVariant) –

Return type:

wx.VisualAttributes



OnPaint(self, event : PaintEvent)

Calls wx.PrintPreview.PaintPage to refresh the canvas.

Parameters:

event (wx.PaintEvent) –

Return type:

None