PrintDialog.setup

This function presents a print dialog to let the user select a printer, and set up print settings and page setup.

The callback will be called when the dialog is dismissed. It should call gtk.print_dialog.PrintDialog.setupFinish to obtain the results in the form of a gtk.print_setup.PrintSetup, that can then be passed to gtk.print_dialog.PrintDialog.print or gtk.print_dialog.PrintDialog.printFile.

One possible use for this method is to have the user select a printer, then show a page setup UI in the application (e.g. to arrange images on a page), then call gtk.print_dialog.PrintDialog.print on self to do the printing without further user interaction.

Parameters

parent gtk.window.Window
cancellable gio.cancellable.Cancellable

a gio.cancellable.Cancellable to cancel the operation

callback gio.types.AsyncReadyCallback

a callback to call when the operation is complete