GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.PreviewControlBar
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.PreviewControlBar — wxPython 4.3.2 Docs

phoenix_title 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

wx.PreviewFrame, wx.PreviewCanvas, wx.PrintPreview


class_hierarchy Class Hierarchy¶

Inheritance diagram for class PreviewControlBar:

Inheritance diagram of PreviewControlBar


method_summary Methods Summary¶

__init__

Constructor.

CreateButtons

Creates buttons, according to value of the button style flags.

GetClassDefaultAttributes

GetPrintPreview

Gets the print preview object associated with the control bar.

GetZoomControl

Gets the current zoom setting in percent.

SetZoomControl

Sets the zoom control.


property_summary Properties Summary¶

PrintPreview

See GetPrintPreview

ZoomControl

See GetZoomControl and SetZoomControl


api Class API¶

class wx.PreviewControlBar(Panel)¶

Possible constructors:

PreviewControlBar(preview, buttons, parent, pos=DefaultPosition,
                  size=DefaultSize, style=0, name="panel") -> None

This is the default implementation of the preview control bar, a panel with buttons and a zoom control.


Methods¶

__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 .

Parameters:
  • preview (wx.PrintPreview)

  • buttons (long)

  • parent (wx.Window)

  • pos (wx.Point)

  • size (wx.Size)

  • style (long)

  • name (string)

Return type:

None



CreateButtons(self)¶

Creates buttons, according to value of the button style flags.

Return type:

None

Todo

which flags??



static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶
Parameters:

variant (WindowVariant)

Return type:

wx.VisualAttributes



GetPrintPreview(self)¶

Gets the print preview object associated with the control bar.

Return type:

wx.PrintPreview



GetZoomControl(self)¶

Gets the current zoom setting in percent.

Return type:

int



SetZoomControl(self, percent)¶

Sets the zoom control.

Parameters:

percent (int)

Return type:

None


Properties¶

PrintPreview¶

See GetPrintPreview



ZoomControl¶

See GetZoomControl and SetZoomControl

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.