MyPrintout contains the following public methods:
| Method | Description |
|---|---|
OnPreparePrinting() |
Prepare data for printing / previewing |
OnBeginPrinting() |
No description |
OnEndPrinting() |
No description |
OnBeginDocument() |
No description |
OnEndDocument() |
No description |
HasPage() |
This function tells the wxPython Print Framework if the specified page has been defined. |
GetPageInfo() |
This function tells the wxPython Print Framework how many pages there are. |
OnPrintPage() |
Processing necessary for presenting a single page to the Preview or Printer |
MapScreenSizeToPageMargins() |
MapScreenSizeToPageMargins(self, PageSetupDialogData pageSetupData) |
GetPPIPrinter() |
GetPPIPrinter() -> (x,y) |
MapScreenSizeToDevice() |
MapScreenSizeToDevice(self) |
base_OnBeginPrinting() |
Please use Printout.OnBeginPrinting instead. |
GetPageSizeMM() |
GetPageSizeMM() -> (w, h) |
FitThisSizeToPaper() |
FitThisSizeToPaper(self, Size imageSize) |
base_OnEndDocument() |
Please use Printout.OnEndDocument instead. |
SetIsPreview() |
SetIsPreview(self, bool p) |
GetPaperRectPixels() |
GetPaperRectPixels(self) -> Rect |
IsSameAs() |
IsSameAs(self, Object p) -> bool For wx.Objects that use C++ reference counting internally, this method can be used to determine if two objects are referencing the same data object. |
MapScreenSizeToPaper() |
MapScreenSizeToPaper(self) |
SetPageSizeMM() |
SetPageSizeMM(self, int w, int h) |
GetLogicalPaperRect() |
GetLogicalPaperRect(self) -> Rect |
GetDC() |
GetDC(self) -> DC |
base_OnEndPrinting() |
Please use Printout.OnEndPrinting instead. |
base_OnPreparePrinting() |
Please use Printout.OnPreparePrinting instead. |
FitThisSizeToPage() |
FitThisSizeToPage(self, Size imageSize) |
base_GetPageInfo() |
Please use Printout.GetPageInfo instead. |
GetPageSizePixels() |
GetPageSizePixels() -> (w, h) |
SetDC() |
SetDC(self, DC dc) |
SetPPIPrinter() |
SetPPIPrinter(self, int x, int y) |
SetPageSizePixels() |
SetPageSizePixels(self, int w, int h) |
SetPPIScreen() |
SetPPIScreen(self, int x, int y) |
SetLogicalOrigin() |
SetLogicalOrigin(self, int x, int y) |
GetPPIScreen() |
GetPPIScreen() -> (x,y) |
Destroy() |
Destroy(self) Deletes the C++ object this Python object is a proxy for. |
SetPaperRectPixels() |
SetPaperRectPixels(self, Rect paperRectPixels) |
GetTitle() |
GetTitle(self) -> String |
IsPreview() |
IsPreview(self) -> bool |
MapScreenSizeToPage() |
MapScreenSizeToPage(self) |
FitThisSizeToPageMargins() |
FitThisSizeToPageMargins(self, Size imageSize, PageSetupDialogData pageSetupData) |
GetClassName() |
GetClassName(self) -> String Returns the class name of the C++ class using wxRTTI. |
GetLogicalPageRect() |
GetLogicalPageRect(self) -> Rect |
GetLogicalPageMarginsRect() |
GetLogicalPageMarginsRect(self, PageSetupDialogData pageSetupData) -> Rect |
OffsetLogicalOrigin() |
OffsetLogicalOrigin(self, int xoff, int yoff) |
base_OnBeginDocument() |
Please use Printout.OnBeginDocument instead. |
MyPrintout contains the following public properties:
| Property | Description |
|---|---|
ClassName |
See `GetClassName` |
DC |
See `GetDC` and `SetDC` |
PPIPrinter |
See `GetPPIPrinter` and `SetPPIPrinter` |
PPIScreen |
See `GetPPIScreen` and `SetPPIScreen` |
PageSizeMM |
See `GetPageSizeMM` and `SetPageSizeMM` |
PageSizePixels |
See `GetPageSizePixels` and `SetPageSizePixels` |
Title |
See `GetTitle` |
thisown |
The membership flag |