wx.PreviewCanvas¶
A preview canvas is the default canvas used by the print preview system to display the preview.
See also
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
Calls |
Class API¶
- class wx.PreviewCanvas(ScrolledWindow)¶
Possible constructors:
PreviewCanvas(preview, parent, pos=DefaultPosition, size=DefaultSize, style=0, name="canvas") -> None
A preview canvas is the default canvas used by the print preview system to display the preview.
Methods¶
- __init__(self, preview, parent, pos=DefaultPosition, size=DefaultSize, style=0, name='canvas')¶
Constructor.
- Parameters:
preview (wx.PrintPreview)
parent (wx.Window)
pos (wx.Point)
size (wx.Size)
style (long)
name (string)
- Return type:
None
- static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶
- Parameters:
variant (WindowVariant)
- Return type:
- OnPaint(self, event)¶
Calls
wx.PrintPreview.PaintPage
to refresh the canvas.- Parameters:
event (wx.PaintEvent)
- Return type:
None