This class holds a variety of information related to wx.PageSetupDialog.
It contains a wx.PrintData member which is used to hold basic printer configuration data (as opposed to the user-interface configuration settings stored by wx.PageSetupDialogData).
See also
Printing Framework Overview, wx.PageSetupDialog
Default constructor. |
|
Enables or disables the “Help” button (Windows only). |
|
Enables or disables the margin controls (Windows only). |
|
Enables or disables the orientation control (Windows only). |
|
Enables or disables the paper size control (Windows only). |
|
Enables or disables the “Printer” button, which invokes a printer setup dialog. |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns the right (x) and bottom (y) margins in millimetres. |
|
Returns the left (x) and top (y) margins in millimetres. |
|
Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only). |
|
Returns the left (x) and top (y) minimum margins the user can enter (Windows only). |
|
Returns the paper id (stored in the internal wx.PrintData object). |
|
Returns the paper size in millimetres. |
|
Returns a reference to the print data associated with this object. |
|
Returns |
|
Pass |
|
Pass |
|
Sets the right (x) and bottom (y) margins in millimetres. |
|
Sets the left (x) and top (y) margins in millimetres. |
|
Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only). |
|
Sets the left (x) and top (y) minimum margins the user can enter (Windows only). |
|
Sets the paper size id. |
|
Sets the paper size in millimetres. |
|
Sets the print data associated with this object. |
|
See |
|
See |
|
See |
|
See |
wx.
PageSetupDialogData
(Object)¶Possible constructors:
PageSetupDialogData() -> None
PageSetupDialogData(data : PageSetupDialogData) -> None
PageSetupDialogData(printData : PrintData) -> None
This class holds a variety of information related to PageSetupDialog.
__init__
(self, *args, **kw)¶__init__ (self)
Default constructor.
None
__init__ (self, data : PageSetupDialogData)
Copy constructor.
data (wx.PageSetupDialogData) –
None
__init__ (self, printData : PrintData)
Construct an object from a print data object.
printData (wx.PrintData) –
None
EnableHelp
(self, flag : bool)¶Enables or disables the “Help” button (Windows only).
flag (bool) –
None
EnableMargins
(self, flag : bool)¶Enables or disables the margin controls (Windows only).
flag (bool) –
None
EnableOrientation
(self, flag : bool)¶Enables or disables the orientation control (Windows only).
flag (bool) –
None
EnablePaper
(self, flag : bool)¶Enables or disables the paper size control (Windows only).
flag (bool) –
None
EnablePrinter
(self, flag : bool)¶Enables or disables the “Printer” button, which invokes a printer setup dialog.
flag (bool) –
None
GetDefaultInfo
(self)¶Returns True
if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
bool
GetDefaultMinMargins
(self)¶Returns True
if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
bool
GetEnableHelp
(self)¶Returns True
if the printer setup button is enabled.
bool
GetEnableMargins
(self)¶Returns True
if the margin controls are enabled (Windows only).
bool
GetEnableOrientation
(self)¶Returns True
if the orientation control is enabled (Windows only).
bool
GetEnablePaper
(self)¶Returns True
if the paper size control is enabled (Windows only).
bool
GetEnablePrinter
(self)¶Returns True
if the printer setup button is enabled.
bool
GetMarginBottomRight
(self)¶Returns the right (x) and bottom (y) margins in millimetres.
GetMarginTopLeft
(self)¶Returns the left (x) and top (y) margins in millimetres.
GetMinMarginBottomRight
(self)¶Returns the right (x) and bottom (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
GetMinMarginTopLeft
(self)¶Returns the left (x) and top (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
GetPaperId
(self)¶Returns the paper id (stored in the internal wx.PrintData object).
See also
GetPrintData
(self)¶Returns a reference to the print data associated with this object.
IsOk
(self)¶Returns True
if the print data associated with the dialog data is valid.
This can return False
on Windows if the current printer is not set, for example. On all other platforms, it returns True
.
bool
SetDefaultInfo
(self, flag : bool)¶Pass True
if the dialog will simply return default printer information (such as orientation) instead of showing a dialog (Windows only).
flag (bool) –
None
SetDefaultMinMargins
(self, flag : bool)¶Pass True
if the page setup dialog will take its minimum margin values from the currently selected printer properties (Windows only).
Units are in millimetres.
flag (bool) –
None
SetMarginBottomRight
(self, pt : Point)¶Sets the right (x) and bottom (y) margins in millimetres.
pt (wx.Point) –
None
SetMarginTopLeft
(self, pt : Point)¶Sets the left (x) and top (y) margins in millimetres.
pt (wx.Point) –
None
SetMinMarginBottomRight
(self, pt : Point)¶Sets the right (x) and bottom (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
pt (wx.Point) –
None
SetMinMarginTopLeft
(self, pt : Point)¶Sets the left (x) and top (y) minimum margins the user can enter (Windows only).
Units are in millimetres.
pt (wx.Point) –
None
SetPaperId
(self, id : PaperSize)¶Sets the paper size id.
Calling this function overrides the explicit paper dimensions passed in SetPaperSize
.
id (PaperSize) –
None
See also
SetPaperSize
(self, size : Size)¶Sets the paper size in millimetres.
If a corresponding paper id is found, it will be set in the internal wx.PrintData object, otherwise the paper size overrides the paper id.
size (wx.Size) –
None
SetPrintData
(self, printData : PrintData)¶Sets the print data associated with this object.
printData (wx.PrintData) –
None
__bool__
(self)¶int
__nonzero__
(self)¶int
MarginBottomRight
¶MarginTopLeft
¶See GetMarginTopLeft
and SetMarginTopLeft
MinMarginBottomRight
¶MinMarginTopLeft
¶PaperId
¶See GetPaperId
and SetPaperId
PaperSize
¶See GetPaperSize
and SetPaperSize
PrintData
¶See GetPrintData
and SetPrintData