This class holds information related to the visual characteristics of wx.PrintDialog.
It contains a wx.PrintData object with underlying printing settings.
See also
Printing Framework Overview, wx.PrintDialog, PrintDialog Overview
Default constructor. |
|
Enables or disables the “Help” button. |
|
Enables or disables the “Page numbers” controls. |
|
Enables or disables the “Print to file” checkbox. |
|
Enables or disables the “Selection” radio button. |
|
Returns |
|
Returns |
|
Returns the from page number, as entered by the user. |
|
Returns the maximum page number. |
|
Returns the minimum page number. |
|
Returns the number of copies requested by the user. |
|
Returns a reference to the internal wx.PrintData object. |
|
Returns |
|
Returns |
|
Returns the “print to” page number, as entered by the user. |
|
Returns |
|
Sets the “Collate” checkbox to |
|
Sets the from page number. |
|
Sets the maximum page number. |
|
Sets the minimum page number. |
|
Sets the default number of copies the user has requested to be printed out. |
|
Sets the internal wx.PrintData. |
|
Sets the “Print to file” checkbox to |
|
Selects the “Selection” radio button. |
|
Sets the “print to” page number. |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
wx.
PrintDialogData
(Object)¶Possible constructors:
PrintDialogData() -> None
PrintDialogData(dialogData : PrintDialogData) -> None
PrintDialogData(printData : PrintData) -> None
This class holds information related to the visual characteristics of PrintDialog.
__init__
(self, *args, **kw)¶__init__ (self)
Default constructor.
None
__init__ (self, dialogData : PrintDialogData)
Copy constructor.
dialogData (wx.PrintDialogData) –
None
__init__ (self, printData : PrintData)
Construct an object from a print dialog data object.
printData (wx.PrintData) –
None
EnableHelp
(self, flag : bool)¶Enables or disables the “Help” button.
flag (bool) –
None
EnablePageNumbers
(self, flag : bool)¶Enables or disables the “Page numbers” controls.
flag (bool) –
None
EnablePrintToFile
(self, flag : bool)¶Enables or disables the “Print to file” checkbox.
flag (bool) –
None
EnableSelection
(self, flag : bool)¶Enables or disables the “Selection” radio button.
flag (bool) –
None
GetAllPages
(self)¶Returns True
if the user requested that all pages be printed.
bool
GetCollate
(self)¶Returns True
if the user requested that the document(s) be collated.
bool
GetFromPage
(self)¶Returns the from page number, as entered by the user.
int
GetMaxPage
(self)¶Returns the maximum page number.
int
GetMinPage
(self)¶Returns the minimum page number.
int
GetNoCopies
(self)¶Returns the number of copies requested by the user.
int
GetPrintData
(self)¶Returns a reference to the internal wx.PrintData object.
GetPrintToFile
(self)¶Returns True
if the user has selected printing to a file.
bool
GetSelection
(self)¶Returns True
if the user requested that the selection be printed (where “selection” is a concept specific to the application).
bool
GetToPage
(self)¶Returns the “print to” page number, as entered by the user.
int
IsOk
(self)¶Returns True
if the print data is valid for using in print dialogs.
This can return False
on Windows if the current printer is not set, for example. On all other platforms, it returns True
.
bool
SetCollate
(self, flag : bool)¶Sets the “Collate” checkbox to True
or False
.
flag (bool) –
None
SetFromPage
(self, page : int)¶Sets the from page number.
page (int) –
None
SetMaxPage
(self, page : int)¶Sets the maximum page number.
page (int) –
None
SetMinPage
(self, page : int)¶Sets the minimum page number.
page (int) –
None
SetNoCopies
(self, n : int)¶Sets the default number of copies the user has requested to be printed out.
n (int) –
None
SetPrintData
(self, printData : PrintData)¶Sets the internal wx.PrintData.
printData (wx.PrintData) –
None
SetPrintToFile
(self, flag : bool)¶Sets the “Print to file” checkbox to True
or False
.
flag (bool) –
None
SetSelection
(self, flag : bool)¶Selects the “Selection” radio button.
The effect of printing the selection depends on how the application implements this command, if at all.
flag (bool) –
None
SetToPage
(self, page : int)¶Sets the “print to” page number.
page (int) –
None
__bool__
(self)¶int
__nonzero__
(self)¶int
AllPages
¶See GetAllPages
Collate
¶See GetCollate
and SetCollate
FromPage
¶See GetFromPage
and SetFromPage
MaxPage
¶See GetMaxPage
and SetMaxPage
MinPage
¶See GetMinPage
and SetMinPage
NoCopies
¶See GetNoCopies
and SetNoCopies
PrintData
¶See GetPrintData
and SetPrintData
PrintToFile
¶See GetPrintToFile
and SetPrintToFile
Selection
¶See GetSelection
and SetSelection