PageSetupUnixDialog#

class PageSetupUnixDialog(*args, **kwargs)#

Superclasses: Dialog, Window, Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager

GtkPageSetupUnixDialog implements a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix.

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

CSS nodes#

GtkPageSetupUnixDialog has a single CSS node with the name window and style class .pagesetup.

Constructors#

class PageSetupUnixDialog
classmethod new(title: str | None = None, parent: Window | None = None) Widget#

Creates a new page setup dialog.

Parameters:
  • title – the title of the dialog

  • parent – transient parent of the dialog

Methods#

class PageSetupUnixDialog
get_page_setup() PageSetup#

Gets the currently selected page setup from the dialog.

get_print_settings() PrintSettings | None#

Gets the current print settings from the dialog.

set_page_setup(page_setup: PageSetup) None#

Sets the GtkPageSetup from which the page setup dialog takes its values.

Parameters:

page_setup – a GtkPageSetup

set_print_settings(print_settings: PrintSettings | None = None) None#

Sets the GtkPrintSettings from which the page setup dialog takes its values.

Parameters:

print_settings – a GtkPrintSettings