wx.PreviewControlBar¶This is the default implementation of the preview control bar, a panel with buttons and a zoom control.
You can derive a new class from this and override some or all member functions to change the behaviour and appearance; or you can leave it as it is.
See also
Methods Summary¶Constructor. |
|
Creates buttons, according to value of the button style flags. |
|
Gets the print preview object associated with the control bar. |
|
Gets the current zoom setting in percent. |
|
Sets the zoom control. |
Class API¶wx.PreviewControlBar(Panel)¶Possible constructors:
PreviewControlBar(preview, buttons, parent, pos=DefaultPosition,
size=DefaultSize, style=0, name="panel")
This is the default implementation of the preview control bar, a panel with buttons and a zoom control.
__init__(self, preview, buttons, parent, pos=DefaultPosition, size=DefaultSize, style=0, name="panel")¶Constructor.
The buttons parameter may be a combination of the following, using the bitwise ‘or’ operator:
wx.PREVIEW_PRINT: Create a print button.
wx.PREVIEW_NEXT: Create a next page button.
wx.PREVIEW_PREVIOUS: Create a previous page button.
wx.PREVIEW_ZOOM: Create a zoom control.
wx.PREVIEW_DEFAULT: Equivalent to a combination of PREVIEW_PREVIOUS , PREVIEW_NEXT and PREVIEW_ZOOM .
preview (wx.PrintPreview) –
buttons (long) –
parent (wx.Window) –
pos (wx.Point) –
size (wx.Size) –
style (long) –
name (string) –
CreateButtons(self)¶Creates buttons, according to value of the button style flags.
Todo
which flags??
GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶variant (WindowVariant) –
GetPrintPreview(self)¶Gets the print preview object associated with the control bar.
GetZoomControl(self)¶Gets the current zoom setting in percent.
int
SetZoomControl(self, percent)¶Sets the zoom control.
percent (int) –
PrintPreview¶See GetPrintPreview
ZoomControl¶See GetZoomControl and SetZoomControl