wx.PreviewControlBar

Inheritance diagram for wx.PreviewControlBar:



Description

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.

Known Subclasses

wx.PyPreviewControlBar

Properties Summary

Class API

Methods

__init__(preview, buttons, parent, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.TAB_TRAVERSAL, name=wx.PanelNameStr)

Constructor. The buttons parameter may be a combination of the following bits:

Flag Description
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 wx.PREVIEW_PREVIOUS, wx.PREVIEW_NEXT and wx.PREVIEW_ZOOM.

Parameters:


Returns:

wx.PreviewControlBar


GetPrintPreview()

Gets the print preview object associated with the control bar.


Returns:

wx.PrintPreview


GetZoomControl()

Gets the current zoom setting in percent.


Returns:

int


OnFirst()
No docstrings available for this method.

OnGoto()
No docstrings available for this method.

OnLast()
No docstrings available for this method.

OnNext()
No docstrings available for this method.

OnPrevious()
No docstrings available for this method.

SetZoomControl(percent)

Sets the zoom control.

Parameters:

  • percent (int)

Properties

PrintPreview
See GetPrintPreview
ZoomControl
See GetZoomControl and SetZoomControl