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()
PrintDialogData(dialogData)
PrintDialogData(printData)
This class holds information related to the visual characteristics of PrintDialog.
__init__
(self, *args, **kw)¶__init__ (self)
Default constructor.
__init__ (self, dialogData)
Copy constructor.
dialogData (wx.PrintDialogData) –
__init__ (self, printData)
Construct an object from a print dialog data object.
printData (wx.PrintData) –
EnableHelp
(self, flag)¶Enables or disables the “Help” button.
flag (bool) –
EnablePageNumbers
(self, flag)¶Enables or disables the “Page numbers” controls.
flag (bool) –
EnablePrintToFile
(self, flag)¶Enables or disables the “Print to file” checkbox.
flag (bool) –
EnableSelection
(self, flag)¶Enables or disables the “Selection” radio button.
flag (bool) –
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)¶Sets the “Collate” checkbox to True
or False
.
flag (bool) –
SetFromPage
(self, page)¶Sets the from page number.
page (int) –
SetMaxPage
(self, page)¶Sets the maximum page number.
page (int) –
SetMinPage
(self, page)¶Sets the minimum page number.
page (int) –
SetNoCopies
(self, n)¶Sets the default number of copies the user has requested to be printed out.
n (int) –
SetPrintData
(self, printData)¶Sets the internal wx.PrintData.
printData (wx.PrintData) –
SetPrintToFile
(self, flag)¶Sets the “Print to file” checkbox to True
or False
.
flag (bool) –
SetSelection
(self, flag)¶Selects the “Selection” radio button.
The effect of printing the selection depends on how the application implements this command, if at all.
flag (bool) –
SetToPage
(self, page)¶Sets the “print to” page number.
page (int) –
__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