gtkunixprint.PrintUnixDialogan dialog for selecting a printer in Unix (new in PyGTK
2.10)Synopsisgtkunixprint.PrintUnixDialoggtk.Dialoggtkunixprint.PrintUnixDialogtitleNoneparentNoneset_page_setuppage_setupget_page_setupset_current_pagecurrent_pageget_current_pageset_settingssettingsNoneget_settingsget_selected_printeradd_custom_tabchildtab_labelset_manual_capabilitiescapabilitiesAncestry+-- gobject.GObject
+-- gtk.Object
+-- gtk.Widget
+-- gtk.Container
+-- gtk.Bin
+-- gtk.Window
+-- gtk.Dialog
+-- gtkunixprint.PrintUnixDialog
Implemented Interfacesgtk.PrintUnixDialog
implements
gtk.Buildablegtkunixprint.PrintUnixDialog Propertiesgtk.Object Propertiesgtk.Widget Propertiesgtk.Container Propertiesgtk.Window Propertiesgtk.Dialog Properties
"current-page"Read-WriteThe current page in the document. Allowed values: >=
-1. Default value: -1. Available in GTK+ 2.10."page-setup"Read-WriteThe gtk.PageSetup
to use. Available in GTK+ 2.10."print-settings"Read-WriteThe gtk.PrintSettings
used for initializing the dialog. Available in GTK+
2.10."selected-printer"Read-WriteThe gtkunixprint.Printer
that is selected. Available in GTK+ 2.10.
gtkunixprint.PrintUnixDialog Style Propertiesgtk.Widget Style Propertiesgtk.Dialog Style Propertiesgtkunixprint.PrintUnixDialog Signal Prototypesgobject.GObject Signal Prototypesgtk.Object Signal Prototypesgtk.Widget Signal Prototypesgtk.Container Signal Prototypesgtk.Window Signal Prototypesgtk.Dialog Signal PrototypesDescriptionConstructorgtkunixprint.PrintUnixDialoggtkunixprint.PrintUnixDialogtitleNoneparentNonetitle :The title of the dialog, or
Noneparent :The transient parent of the dialog, or
NoneReturns :a new gtkunixprint.PrintUnixDialogThis constructor is available in PyGTK 2.10 and above.Creates a new gtkunixprint.PrintUnixDialog.Methodsgtkunixprint.PrintUnixDialog.set_page_setupset_page_setuppage_setuppage_setup :a gtk.PageSetupThis method is available in PyGTK 2.10 and above.The set_page_setup() method sets the
"page-setup" property to the gtk.PageSetup
specified by page_setup.gtkunixprint.PrintUnixDialog.get_page_setupget_page_setupReturns :the page setup of the
dialog.This method is available in PyGTK 2.10 and above.The get_page_setup() method returns the
gtk.PageSetup
that is used by the gtkunixprint.PrintUnixDialog.gtkunixprint.PrintUnixDialog.set_current_pageset_current_pagecurrent_pagecurrent_page :the current page number.This method is available in PyGTK 2.10 and above.The set_current_page() method sets the
"current-page" property ot the value specified by
current_page. If
current_page is not -1 (the default value), the
current page choice for the range of pages to print is enabled.gtkunixprint.PrintUnixDialog.get_current_pageget_current_pageReturns :the current page of the dialogThis method is available in PyGTK 2.10 and above.The get_current_page() method returns
the current page of the gtkunixprint.PrintUnixDialog.gtkunixprint.PrintUnixDialog.set_settingsset_settingssettingsNonesettings :a gtk.PrintSettings,
or NoneThis method is available in PyGTK 2.10 and above.The set_settings() method sets the
gtk.PrintSettings
for the gtkunixprint.PrintUnixDialog. Typically,
this is used to restore saved print settings from a previous print
operation before the print dialog is shown.gtkunixprint.PrintUnixDialog.get_settingsget_settingsReturns :a new gtk.PrintSettings
object with the values from the dialogThis method is available in PyGTK 2.10 and above.The get_settings() method returns a new
gtk.PrintSettings
object that represents the current values in the print dialog.gtkunixprint.PrintUnixDialog.get_selected_printerget_selected_printerReturns :the currently selected
printerThis method is available in PyGTK 2.10 and above.The get_selected_printer() method
returns the currently selected gtkunixprint.Printer.gtkunixprint.PrintUnixDialog.add_custom_tabadd_custom_tabchildtab_labelchild :a gtk.Widgettab_label :a gtk.WidgetThis method is available in PyGTK 2.10 and above.The add_custom_tab() method adds a tab
to the dialog using the gtk.Widget
specified by child for the contents and
tab_label for the label.gtkunixprint.PrintUnixDialog.set_manual_capabilitiesset_manual_capabilitiescapabilitiescapabilities :one of the This method is available in PyGTK 2.10 and above.The set_manual_capabilities() method
lets you specify the printing capabilities your application supports
using the specified by
capabilities. For example, if the application
can handle scaling the output then it should pass
gtkunixprint.PRINT_CAPABILITY_SCALE. If it doesn't
pass that, the dialog will only let you select the scale if the
printing system automatically handles scaling.