This class extends the PrintDialog class to be able to print the contents of a canvas as postscript. Note: this class does not support printing images embedded in the canvas.
-bot_left Header text to appear at bottom left. -bot_right Header text to appear at bottom right. -canvas Canvas widget. -fit_to_page Flag, if true, scale output to fit on page. -header_font Header/footer fonts. -pageheight Page height, used when fit_to_page is 1. -pagewidth Page width, used when fit_to_page is 1. -show_headers Flag, if true, insert headers before printing. -top_left Header text to appear at top left. -top_right Header text to appear at top right. -x0 X0 coordinate of area of canvas to print. -x1 X1 coordinate of area of canvas to print. -y0 Y0 coordinate of area of canvas to print. -y1 Y1 coordinate of area of canvas to print.
add_headers {} Add header and footer labels above/below draw area by temporarily inserting the text . init {} This method is called after all options have been evaluated. print {fd} Print the contents of the canvas to the open filedescriptor. rm_headers {} Remove the headers, if any and restore the original state. toggle_fit_pagesize {} Called when the "Fit on page" button is pressed.
x0 Saved -x0 option value. x1 Saved -x1 option value. y0 Saved -y0 option value. y1 Saved -y1 option value.
Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory