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
__init__ | Constructor. |
CreateButtons | Creates buttons, according to value of the button style flags. |
GetPrintPreview | Gets the print preview object associated with the control bar. |
GetZoomControl | Gets the current zoom setting in percent. |
SetZoomControl | Sets the zoom control. |
PrintPreview | See GetPrintPreview |
ZoomControl | See GetZoomControl and SetZoomControl |
This is the default implementation of the preview control bar, a panel with buttons and a zoom control.
Possible constructors:
PreviewControlBar(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:
Parameters: |
|
---|
Creates buttons, according to value of the button style flags.
Todo
which flags??
Gets the print preview object associated with the control bar.
Return type: | PrintPreview |
---|
Gets the current zoom setting in percent.
Return type: | int |
---|
Sets the zoom control.
Parameters: | percent (int) – |
---|
See GetPrintPreview
See GetZoomControl and SetZoomControl