File: keybinding_helper.py

package info (click to toggle)
app-model 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 700 kB
  • sloc: python: 5,484; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 252 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import sys

from qtpy.QtWidgets import QApplication

from app_model.backends.qt import QModelKeyBindingEdit

app = QApplication(sys.argv)
w = QModelKeyBindingEdit()
w.editingFinished.connect(lambda: print(w.keyBinding()))
w.show()
sys.exit(app.exec())