Commit 62d8f932 authored by Radek Hušek's avatar Radek Hušek
Browse files

add keyboard shortcuts

parent faf7eb70
......@@ -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]))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment