PrintOperation.runDialog

Run the print dialog and start printing.

Run the print dialog and start printing using the options selected by the user. This method returns when the print dialog is closed. If the print dialog is cancelled webkit.types.PrintOperationResponse.Cancel is returned. If the user clicks on the print button, webkit.types.PrintOperationResponse.Print is returned and the print operation starts. In this case, the #WebKitPrintOperation::finished signal is emitted when the operation finishes. If an error occurs while printing, the signal #WebKitPrintOperation::failed is emitted before #WebKitPrintOperation::finished. If the print dialog is not cancelled current print settings and page setup of print_operation are updated with options selected by the user when Print button is pressed in print dialog. You can get the updated print settings and page setup by calling webkit.print_operation.PrintOperation.getPrintSettings and webkit.print_operation.PrintOperation.getPageSetup after this method.

class PrintOperation
runDialog

Parameters

parent gtk.window.Window

transient parent of the print dialog

Return Value

Type: webkit.types.PrintOperationResponse

the #WebKitPrintOperationResponse of the print dialog