Go up one levelGo to Previous Go to Next

CanvasPrint(n)

NAME

 
 CanvasPrint - Popup dialog for printing the contents of a Tk canvas

NAMESPACE

 
 util

PARENT CLASS

 
 util::PrintDialog

SYNOPSIS

 
 CanvasPrint <path> ?options?

DESCRIPTION

 
 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.


WIDGET OPTIONS

 
 -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.

PROTECTED METHODS

 
 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.

PROTECTED VARIABLES

 
 x0
        Saved -x0 option value.

 x1
        Saved -x1 option value.

 y0
        Saved -y0 option value.

 y1
        Saved -y1 option value.

SEE ALSO

 
 PrintDialog(n)

 


- - - - - -
Last change: 07 May 99

 


Go up one levelGo to Previous Go to Next

Please send questions or comments to abrighto@eso.org.
Copyright © 1998 ESO - European Southern Observatory