Skip to content

AbstractPrintDialogMixin

Base classes

Name Children Inherits
DialogMixin
prettyqt.widgets.dialog

Subclasses

Class Module Description
AbstractPrintDialog prettyqt.printsupport.abstractprintdialog
PrintDialog prettyqt.printsupport.printdialog

⋔ Inheritance diagram

graph TD
  1473572221296["printsupport.AbstractPrintDialogMixin"]
  1473296195376["widgets.DialogMixin"]
  1473293688240["widgets.WidgetMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473245548480["gui.PaintDeviceMixin"]
  1473296195376 --> 1473572221296
  1473293688240 --> 1473296195376
  1473299815024 --> 1473293688240
  140713234304496 --> 1473299815024
  1473245548480 --> 1473293688240
  140713234304496 --> 1473245548480

🛈 DocStrings

Bases: DialogMixin

Source code in prettyqt\printsupport\abstractprintdialog.py
class AbstractPrintDialogMixin(widgets.DialogMixin):
    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))