Skip to content

AbstractPrintDialogMixin

Sub classes

Name Children Inherits
AbstractPrintDialog
prettyqt.printsupport.abstractprintdialog
Base implementation for print dialogs used to configure printers.
    PrintDialog
    prettyqt.printsupport.printdialog
    Dialog for specifying the printer's configuration.

      Base classes

      Name Children Inherits
      DialogMixin
      prettyqt.widgets.dialog
      object
      builtins
      The base class of the class hierarchy.
      • type
      • async_generator
      • bytearray_iterator
      • bytearray
      • bytes_iterator
      • bytes
      • builtin_function_or_method
      • callable_iterator
      • PyCapsule
      • cell
      • classmethod_descriptor
      • ...

        ⋔ Inheritance diagram

        graph TD
          2283008949["printsupport.AbstractPrintDialogMixin"]
          2345124717["widgets.DialogMixin"]
          829357528["widgets.WidgetMixin"]
          3227531497["core.ObjectMixin"]
          2751680898["builtins.object"]
          625385617["gui.PaintDeviceMixin"]
          2345124717 --> 2283008949
          829357528 --> 2345124717
          3227531497 --> 829357528
          2751680898 --> 3227531497
          625385617 --> 829357528
          2751680898 --> 625385617
          2751680898 --> 829357528
          2751680898 --> 2345124717
          2751680898 --> 2283008949

        🛈 DocStrings

        Bases: DialogMixin, _AbstractPrintDialogBase

        Source code in prettyqt/printsupport/abstractprintdialog.py
        class AbstractPrintDialogMixin(widgets.DialogMixin, _AbstractPrintDialogBase):
            def get_print_range(self) -> PrintRangeStr:
                return PRINT_RANGE.inverse[self.printRange()]
        
            def set_print_range(
                self, print_range: PrintRangeStr | QtPrintSupport.QAbstractPrintDialog.PrintRange
            ):
                """Set print range.
        
                Args:
                    print_range: print range
                """
                self.setPrintRange(PRINT_RANGE.get_enum_value(print_range))
        

        set_print_range(print_range: PrintRangeStr | QtPrintSupport.QAbstractPrintDialog.PrintRange)

        Set print range.

        Parameters:

        Name Type Description Default
        print_range PrintRangeStr | PrintRange

        print range

        required
        Source code in prettyqt/printsupport/abstractprintdialog.py
        def set_print_range(
            self, print_range: PrintRangeStr | QtPrintSupport.QAbstractPrintDialog.PrintRange
        ):
            """Set print range.
        
            Args:
                print_range: print range
            """
            self.setPrintRange(PRINT_RANGE.get_enum_value(print_range))
        

        :fa-brands-github: Show source on GitHub