:right-sidebar: True PageSetupUnixDialog =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: PageSetupUnixDialog(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Dialog`, :class:`~gi.repository.Gtk.Window`, :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget`, :class:`~gi.repository.Gtk.Native`, :class:`~gi.repository.Gtk.Root`, :class:`~gi.repository.Gtk.ShortcutManager` ``GtkPageSetupUnixDialog`` implements a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix. .. image:: https://docs.gtk.org/gtk4/pagesetupdialog.png It can be used very much like any other GTK dialog, at the cost of the portability offered by the high-level printing API in :obj:`~gi.repository.Gtk.PrintOperation`. CSS nodes --------- ``GtkPageSetupUnixDialog`` has a single CSS node with the name ``window`` and style class ``.pagesetup``. Constructors ------------ .. rst-class:: interim-class .. class:: PageSetupUnixDialog :no-index: .. classmethod:: new(title: str | None = None, parent: ~gi.repository.Gtk.Window | None = None) -> ~gi.repository.Gtk.Widget Creates a new page setup dialog. :param title: the title of the dialog :param parent: transient parent of the dialog Methods ------- .. rst-class:: interim-class .. class:: PageSetupUnixDialog :no-index: .. method:: get_page_setup() -> ~gi.repository.Gtk.PageSetup Gets the currently selected page setup from the dialog. .. method:: get_print_settings() -> ~gi.repository.Gtk.PrintSettings | None Gets the current print settings from the dialog. .. method:: set_page_setup(page_setup: ~gi.repository.Gtk.PageSetup) -> None Sets the ``GtkPageSetup`` from which the page setup dialog takes its values. :param page_setup: a ``GtkPageSetup`` .. method:: set_print_settings(print_settings: ~gi.repository.Gtk.PrintSettings | None = None) -> None Sets the ``GtkPrintSettings`` from which the page setup dialog takes its values. :param print_settings: a ``GtkPrintSettings``