From 62d8f932f4f8ae941787169e93f301c53c037ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Hu=C5=A1ek?= <husek@iuuk.mff.cuni.cz> Date: Wed, 18 Oct 2017 20:28:20 +0200 Subject: [PATCH] add keyboard shortcuts --- cups-pdf-postprocess.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cups-pdf-postprocess.py b/cups-pdf-postprocess.py index 130bba5..c13e02d 100755 --- a/cups-pdf-postprocess.py +++ b/cups-pdf-postprocess.py @@ -94,7 +94,7 @@ class CPP(QWidget): return s hbox = QHBoxLayout() - self._crop = QCheckBox('Crop', self) + self._crop = QCheckBox('C&rop', self) hbox.addWidget(self._crop) _vbox = QVBoxLayout() _vbox.addWidget(QLabel("Margins [mm]")) @@ -113,7 +113,7 @@ class CPP(QWidget): self._crop.clicked[bool].connect(_crop_changed) hbox = QHBoxLayout() - self._compact = QCheckBox('Compact', self) + self._compact = QCheckBox('Co&mpact', self) self._compact_copies = QSpinBox(self) self._compact_copies.setMinimum(1) self._compact_copies.setMaximum(1000) @@ -145,8 +145,8 @@ class CPP(QWidget): self._duplex.addItem("Long Edge", "duplex=two-sided-long-edge") self._duplex.addItem("Short Side", "duplex=two-sided-long-edge") self._duplex.setCurrentIndex(1) - self._pdfbook = QCheckBox('Use pdfbook', self) - self._staple = QCheckBox('Staple', self) + self._pdfbook = QCheckBox('Use pdf&book', self) + self._staple = QCheckBox('&Staple', self) self._staple.setEnabled(False) def _pdfbook_changed(enabled): @@ -170,11 +170,11 @@ class CPP(QWidget): self._printer = o hbox = QHBoxLayout() - b_p = QPushButton("Print", self) + b_p = QPushButton("&Print", self) b_p.clicked.connect(self.print) hbox.addWidget(b_p) self._button_print = b_p - b_c = QPushButton("Cancel", self) + b_c = QPushButton("&Cancel", self) b_c.clicked.connect(self.close) hbox.addWidget(b_c) self._button_cancel = b_c @@ -227,7 +227,7 @@ class CPP(QWidget): pipeline.append(cmd) exec_pipeline(pipeline, self._pdf, err_callback=logMsg) - self._button_cancel.setText("Close") + self._button_cancel.setText("&Close") DIR = os.path.dirname(os.path.realpath(sys.argv[0])) -- GitLab