******************** wx.PreviewControlBar ******************** Inheritance diagram for `wx.PreviewControlBar`: | .. inheritance-diagram:: 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. .. seealso:: `wx.PreviewFrame `_, `wx.PreviewCanvas `_, `wx.PrintPreview `_ Derived From ^^^^^^^^^^^^^ * `wx.Panel `_ * `wx.Window `_ * `wx.EvtHandler `_ * `wx.Object `_ Known Subclasses ^^^^^^^^^^^^^^^^ `wx.PyPreviewControlBar `_ Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `GetPrintPreview <#GetPrintPreview>`_ * `GetZoomControl <#GetZoomControl>`_ * `OnFirst <#OnFirst>`_ * `OnGoto <#OnGoto>`_ * `OnLast <#OnLast>`_ * `OnNext <#OnNext>`_ * `OnPrevious <#OnPrevious>`_ * `SetZoomControl <#SetZoomControl>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `PrintPreview <#PrintPreview>`_ * `ZoomControl <#ZoomControl>`_ Class API ========= Methods ^^^^^^^ .. method:: __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:** * `preview` (`wx.PrintPreview `_) * `buttons` (long) * `parent` (`wx.Window `_) * `pos` (`wx.Point `_) * `size` (`wx.Size `_) * `style` (long) * `name` (string) | **Returns:** `wx.PreviewControlBar `_ -------- .. method:: GetPrintPreview() Gets the print preview object associated with the control bar. | **Returns:** `wx.PrintPreview `_ -------- .. method:: GetZoomControl() Gets the current zoom setting in percent. | **Returns:** `int` -------- .. method:: OnFirst() `No docstrings available for this method.` -------- .. method:: OnGoto() `No docstrings available for this method.` -------- .. method:: OnLast() `No docstrings available for this method.` -------- .. method:: OnNext() `No docstrings available for this method.` -------- .. method:: OnPrevious() `No docstrings available for this method.` -------- .. method:: SetZoomControl(percent) Sets the zoom control. **Parameters:** * `percent` (int) -------- Properties ^^^^^^^^^^ .. attribute:: PrintPreview See `GetPrintPreview <#GetPrintPreview>`_ .. attribute:: ZoomControl See `GetZoomControl <#GetZoomControl>`_ and `SetZoomControl <#SetZoomControl>`_