wx.PrintDialogData¶
This class holds information related to the visual characteristics of wx.PrintDialog.
It contains a wx.PrintData object with underlying printing settings.
Class Hierarchy¶
Methods Summary¶
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. |
|
Properties Summary¶
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
Class API¶
- class wx.PrintDialogData(Object)¶
Possible constructors:
PrintDialogData() -> None PrintDialogData(dialogData) -> None PrintDialogData(printData) -> None
This class holds information related to the visual characteristics of PrintDialog.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
Default constructor.
- Return type:
None
__init__ (self, dialogData)
Copy constructor.
- Parameters:
dialogData (wx.PrintDialogData)
- Return type:
None
__init__ (self, printData)
Construct an object from a print dialog data object.
- Parameters:
printData (wx.PrintData)
- Return type:
None
- EnableHelp(self, flag)¶
Enables or disables the “Help” button.
- Parameters:
flag (bool)
- Return type:
None
- EnablePageNumbers(self, flag)¶
Enables or disables the “Page numbers” controls.
- Parameters:
flag (bool)
- Return type:
None
- EnablePrintToFile(self, flag)¶
Enables or disables the “Print to file” checkbox.
- Parameters:
flag (bool)
- Return type:
None
- EnableSelection(self, flag)¶
Enables or disables the “Selection” radio button.
- Parameters:
flag (bool)
- Return type:
None
- GetAllPages(self)¶
Returns
True
if the user requested that all pages be printed.- Return type:
bool
- GetCollate(self)¶
Returns
True
if the user requested that the document(s) be collated.- Return type:
bool
- GetFromPage(self)¶
Returns the from page number, as entered by the user.
- Return type:
int
- GetMaxPage(self)¶
Returns the maximum page number.
- Return type:
int
- GetMinPage(self)¶
Returns the minimum page number.
- Return type:
int
- GetNoCopies(self)¶
Returns the number of copies requested by the user.
- Return type:
int
- GetPrintData(self)¶
Returns a reference to the internal wx.PrintData object.
- Return type:
- GetPrintToFile(self)¶
Returns
True
if the user has selected printing to a file.- Return type:
bool
- GetSelection(self)¶
Returns
True
if the user requested that the selection be printed (where “selection” is a concept specific to the application).- Return type:
bool
- GetToPage(self)¶
Returns the “print to” page number, as entered by the user.
- Return type:
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 returnsTrue
.- Return type:
bool
- SetCollate(self, flag)¶
Sets the “Collate” checkbox to
True
orFalse
.- Parameters:
flag (bool)
- Return type:
None
- SetFromPage(self, page)¶
Sets the from page number.
- Parameters:
page (int)
- Return type:
None
- SetMaxPage(self, page)¶
Sets the maximum page number.
- Parameters:
page (int)
- Return type:
None
- SetMinPage(self, page)¶
Sets the minimum page number.
- Parameters:
page (int)
- Return type:
None
- SetNoCopies(self, n)¶
Sets the default number of copies the user has requested to be printed out.
- Parameters:
n (int)
- Return type:
None
- SetPrintData(self, printData)¶
Sets the internal wx.PrintData.
- Parameters:
printData (wx.PrintData)
- Return type:
None
- SetPrintToFile(self, flag)¶
Sets the “Print to file” checkbox to
True
orFalse
.- Parameters:
flag (bool)
- Return type:
None
- 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.
- Parameters:
flag (bool)
- Return type:
None
- SetToPage(self, page)¶
Sets the “print to” page number.
- Parameters:
page (int)
- Return type:
None
- __bool__(self)¶
- Return type:
bool
- __nonzero__(self)¶
- Return type:
bool
Properties¶
- AllPages¶
See
GetAllPages
- Collate¶
See
GetCollate
andSetCollate
- FromPage¶
See
GetFromPage
andSetFromPage
- MaxPage¶
See
GetMaxPage
andSetMaxPage
- MinPage¶
See
GetMinPage
andSetMinPage
- NoCopies¶
See
GetNoCopies
andSetNoCopies
- PrintData¶
See
GetPrintData
andSetPrintData
- PrintToFile¶
See
GetPrintToFile
andSetPrintToFile
- Selection¶
See
GetSelection
andSetSelection