Using the class instance

With a name like wx.html.HtmlEasyPrinting, you'd expect that using the class would be easy. And it is. To start, you can show the user dialog boxes for settings with the methods PrinterSetup() and PageSetup(). Calling these methods causes the appropriate dialog to be displayed to the user. The easy printing instance stores these settings for later use, so that you don't have to. If you want to access those data objects for your own specific handling, use the methods GetPrintData() and GetPageSetupData(). The GetPrintData() method returns a wx.PrintData object, and GetPageSetupData() returns a wx.PageSetupDialogData object, both of which are discussed in more detail in chapter 17.

Was this article helpful?

0 0

Post a comment