From ff1a9b90c6b2814832e618a8f833ffab071cee90 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Mon, 14 May 2018 22:38:54 +0200 Subject: [PATCH] Fixed typo --- INSTALL.md | 20 ++++++++++++++++++-- photobooth/Photobooth.py | 2 +- photobooth/gui/PyQt5Gui.py | 4 ++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 23902b5..d69c209 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -62,10 +62,17 @@ pip install gphoto2 -or- pip install gphoto2-cffi +## Additional setup steps for my hardware setup +### Pollin LS-7T touch screen + +#### Install required packages +```bash apt install xinput-calibrator xserver-xorg-input-evdev +``` -/usr/share/X11/xorg.conf.d/99-eGalax.conf: +#### Configure device +Add the following to `/usr/share/X11/xorg.conf.d/99-eGalax.conf`: ``` Section "InputClass" Identifier "evdev tablet catchall" @@ -80,4 +87,13 @@ Section "InputClass" Option "Calibration" "19 1988 96 1965" Option "SwapAxes" "0" EndSection -``` \ No newline at end of file +``` + +The calibration data can be obtained using `xinput-calibrator`. + +### Canon Selphy CP-1000 printer + +#### Install Gutenprint printer drivers +```bash +apt install printer-driver-gutenprint +``` diff --git a/photobooth/Photobooth.py b/photobooth/Photobooth.py index 191ba44..386d102 100644 --- a/photobooth/Photobooth.py +++ b/photobooth/Photobooth.py @@ -66,7 +66,7 @@ class Photobooth: self._lampOn = lambda : self._gpio.lampOn(lamp) self._lampOff = lambda : self._gpio.lampOff(lamp) - self._gpio.setButton(triger_pin, self.gpioTrigger) + self._gpio.setButton(trigger_pin, self.gpioTrigger) self._gpio.setButton(exit_pin, self.gpioExit) else: self._lampOn = lambda : None diff --git a/photobooth/gui/PyQt5Gui.py b/photobooth/gui/PyQt5Gui.py index 4c41934..c4e79b7 100644 --- a/photobooth/gui/PyQt5Gui.py +++ b/photobooth/gui/PyQt5Gui.py @@ -650,6 +650,10 @@ class PyQt5WaitMessage(QFrame): painter = QPainter(self) + f = self.font() + f.setPixelSize(self.height() / 8) + painter.setFont(f) + rect = QRect(0, self.height() * 3 / 5, self.width(), self.height() * 3 / 10) painter.drawText(rect, Qt.AlignCenter, self._message)