def showAbout(qt_viewer): d = QDialog() d.setObjectName('QtAboutKeybindings') d.setStyleSheet(qt_viewer.styleSheet()) d.setWindowTitle('Keybindings') qt_viewer._about_keybindings = QtAboutKeybindings(qt_viewer.viewer, d) d.show() d.setWindowModality(Qt.NonModal) d.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) qt_viewer._about_keybindings_dialog = d