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¶
Inheritance diagram for class PreviewCanvas:
Methods Summary¶Constructor. |
|
Calls |
Class API¶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.
__init__(self, preview : PrintPreview, parent : Window, pos: Point=DefaultPosition, size: Size=DefaultSize, style: int=0, name: str="canvas")¶Constructor.
preview (wx.PrintPreview) –
parent (wx.Window) –
pos (wx.Point) –
size (wx.Size) –
style (long) –
name (string) –
None
GetClassDefaultAttributes(variant: WindowVariant=WINDOW_VARIANT_NORMAL)¶variant (WindowVariant) –
OnPaint(self, event : PaintEvent)¶Calls wx.PrintPreview.PaintPage to refresh the canvas.
event (wx.PaintEvent) –
None