Gtk.PageSetupUnixDialog

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget Gtk.Native Gtk.Native GObject.GInterface->Gtk.Native Gtk.Root Gtk.Root GObject.GInterface->Gtk.Root Gtk.ShortcutManager Gtk.ShortcutManager GObject.GInterface->Gtk.ShortcutManager GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Dialog Gtk.Dialog Gtk.PageSetupUnixDialog Gtk.PageSetupUnixDialog Gtk.Dialog->Gtk.PageSetupUnixDialog Gtk.Window Gtk.Window Gtk.Native->Gtk.Window Gtk.Root->Gtk.Window Gtk.ShortcutManager->Gtk.Window Gtk.Widget->Gtk.Window Gtk.Window->Gtk.Dialog

Subclasses:

None

Methods

Inherited:

Gtk.Dialog (11), Gtk.Window (62), Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Native (6), Gtk.Root (3)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new (title, parent)

get_page_setup ()

get_print_settings ()

set_page_setup (page_setup)

set_print_settings (print_settings)

Virtual Methods

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9), Gtk.ShortcutManager (2)

Properties

Inherited:

Gtk.Dialog (1), Gtk.Window (25), Gtk.Widget (34), Gtk.Accessible (1)

Signals

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Dialog (2), Gtk.Window (5), Gtk.Widget (13), GObject.Object (1)

Class Details

class Gtk.PageSetupUnixDialog(*args, **kwargs)
Bases:

Gtk.Dialog

Abstract:

No

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

An example Gtk.PageSetupUnixDialog

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 [class`Gtk`.PrintOperation].

CSS nodes

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

classmethod new(title, parent)[source]
Parameters:
  • title (str or None) – the title of the dialog

  • parent (Gtk.Window or None) – transient parent of the dialog

Returns:

the new GtkPageSetupUnixDialog

Return type:

Gtk.Widget

Creates a new page setup dialog.

get_page_setup()[source]
Returns:

the current page setup

Return type:

Gtk.PageSetup

Gets the currently selected page setup from the dialog.

get_print_settings()[source]
Returns:

the current print settings

Return type:

Gtk.PrintSettings or None

Gets the current print settings from the dialog.

set_page_setup(page_setup)[source]
Parameters:

page_setup (Gtk.PageSetup) – a GtkPageSetup

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

set_print_settings(print_settings)[source]
Parameters:

print_settings (Gtk.PrintSettings or None) – a GtkPrintSettings

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