Printer settings updated
This commit is contained in:
@@ -30,7 +30,7 @@ enable = True
|
||||
# Printer module to use (qt5)
|
||||
module = qt5
|
||||
# Paper width in mm
|
||||
width = 150
|
||||
width = 148
|
||||
# Paper height in mm
|
||||
height = 100
|
||||
|
||||
@@ -52,9 +52,9 @@ num_x = 2
|
||||
# Number of pictures in vertical direction
|
||||
num_y = 2
|
||||
# Size of output picture in horizontal direction
|
||||
size_x = 1920
|
||||
size_x = 3496
|
||||
# Size of output picture in vertical direction
|
||||
size_y = 1080
|
||||
size_y = 2362
|
||||
# Minimum distance between thumbnails in horizontal direction
|
||||
min_dist_x = 20
|
||||
# Minimum distance between thumbnails in vertical direction
|
||||
|
||||
@@ -35,7 +35,7 @@ class PrintPostprocess(GuiPostprocess):
|
||||
super().__init__(**kwargs)
|
||||
|
||||
Printer = lookup_and_import(printer.modules, printer_module, 'printer')
|
||||
self._printer = Printer(page_size, True)
|
||||
self._printer = Printer(page_size)
|
||||
|
||||
|
||||
def get(self, picture):
|
||||
|
||||
@@ -19,6 +19,7 @@ class PrinterPyQt5(Printer):
|
||||
|
||||
self._printer = QPrinter(QPrinter.HighResolution)
|
||||
self._printer.setPageSize(QPageSize(QSizeF(*page_size), QPageSize.Millimeter))
|
||||
self._printer.setColorMode(QPrinter.Color)
|
||||
|
||||
logging.info('Using printer "%s"', self._printer.printerName())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user