Printer settings updated

This commit is contained in:
Balthasar Reuter committed 2018-05-15 22:06:40 +02:00
1 parent be8cfee705
commit 15f5bea267
3 files changed
+5 -4

No files matched your search

+3 -3
View File
@@ -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
+1 -1
View File
@@ -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):
+1
View File
@@ -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())