gtk.unixprint.PrintUnixDialog
gtk.unixprint.PrintUnixDialog — an dialog for selecting a printer in Unix (new in PyGTK
2.10)
Constructor
gtk.unixprint.PrintUnixDialog
gtk.unixprint.PrintUnixDialog(title=None, parent=None)
|
Note
This constructor is available in PyGTK 2.10 and above.
Creates a new gtk.unixprint.PrintUnixDialog.
Methods
gtk.unixprint.PrintUnixDialog.set_page_setup
def set_page_setup(page_setup)
|
Note
This 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.
gtk.unixprint.PrintUnixDialog.get_page_setup
Returns : | the page setup of the
dialog. |
Note
This method is available in PyGTK 2.10 and above.
The get_page_setup() method returns the
gtk.PageSetup
that is used by the gtk.unixprint.PrintUnixDialog.
gtk.unixprint.PrintUnixDialog.set_current_page
def set_current_page(current_page)
|
current_page : | the current page number. |
Note
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.
gtk.unixprint.PrintUnixDialog.get_current_page
Returns : | the current page of the dialog |
Note
This method is available in PyGTK 2.10 and above.
The get_current_page() method returns
the current page of the gtk.PrintUnixDialog.
gtk.unixprint.PrintUnixDialog.set_settings
def set_settings(settings=None)
|
Note
This method is available in PyGTK 2.10 and above.
The set_settings() method sets the
gtk.PrintSettings
for the gtk.unixprint.PrintUnixDialog. Typically,
this is used to restore saved print settings from a previous print
operation before the print dialog is shown.
gtk.unixprint.PrintUnixDialog.get_settings
Note
This 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.
gtk.unixprint.PrintUnixDialog.get_selected_printer
def get_selected_printer()
|
Returns : | the currently selected
printer |
Note
This method is available in PyGTK 2.10 and above.
The get_selected_printer() method
returns the currently selected gtk.Printer.
gtk.unixprint.PrintUnixDialog.add_custom_tab
def add_custom_tab(child, tab_label)
|
Note
This 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.
gtk.unixprint.PrintUnixDialog.set_manual_capabilities
def set_manual_capabilities(capabilities)
|
Note
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 Unixprint Print Capabilities Flag Constants specified by
capabilities. For example, if the application
can handle scaling the output then it should pass
gtk.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.