It can be used very much like any other GTK dialog, at the cost of
the portability offered by the high-level printing API with
gtk.print_operation.PrintOperation.
<objectclass="GtkPrintUnixDialog"id="dialog1"><childinternal-child="notebook"><objectclass="GtkNotebook"id="notebook"><child><objecttype="GtkNotebookPage"><propertyname="tab_expand">False</property><propertyname="tab_fill">False</property><propertyname="tab"><objectclass="GtkLabel"id="tablabel"><propertyname="label">Tab label</property></object></property><propertyname="child"><objectclass="GtkLabel"id="tabcontent"><propertyname="label">Content on notebook tab</property></object></property></object></child></object></child></object>
gtk.print_unix_dialog.PrintUnixDialog implements a print dialog for platforms which don’t provide a native print dialog, like Unix.
It can be used very much like any other GTK dialog, at the cost of the portability offered by the high-level printing API with gtk.print_operation.PrintOperation.
In order to print something with gtk.print_unix_dialog.PrintUnixDialog, you need to use gtk.print_unix_dialog.PrintUnixDialog.getSelectedPrinter to obtain a gtk.printer.Printer object and use it to construct a gtk.print_job.PrintJob using gtk.print_job.PrintJob.new_.
gtk.print_unix_dialog.PrintUnixDialog uses the following response values:
GtkPrintUnixDialog as GtkBuildable
The gtk.print_unix_dialog.PrintUnixDialog implementation of the gtk.buildable.Buildable interface exposes its @notebook internal children with the name “notebook”.
An example of a gtk.print_unix_dialog.PrintUnixDialog UI definition fragment:
CSS nodes
gtk.print_unix_dialog.PrintUnixDialog has a single CSS node with name window. The style classes dialog and print are added.