def event(self, ev): if ev == QKeySequence.HelpContents: userguide.show("search_replace") ev.accept() return True elif ev.type() == QEvent.KeyPress: modifiers = int(ev.modifiers() & (Qt.SHIFT | Qt.CTRL | Qt.ALT | Qt.META)) if ev.key() == Qt.Key_Tab and modifiers == 0: # prevent Tab from reaching the View widget self.window().focusNextChild() ev.accept() return True elif ev.key() == Qt.Key_Backtab and modifiers & ~Qt.SHIFT == 0: # prevent Tab from reaching the View widget self.window().focusPreviousChild() ev.accept() return True return super(Search, self).event(ev)
def event(self, ev): """Reimplemented to catch F1 for help and Tab so it does not reach the View.""" if ev == QKeySequence.HelpContents: userguide.show("search_replace") ev.accept() return True elif ev.type() == QEvent.KeyPress: modifiers = int(ev.modifiers() & (Qt.SHIFT | Qt.CTRL | Qt.ALT | Qt.META)) if ev.key() == Qt.Key_Tab and modifiers == 0: # prevent Tab from reaching the View widget self.window().focusNextChild() ev.accept() return True elif ev.key() == Qt.Key_Backtab and modifiers & ~Qt.SHIFT == 0: # prevent Tab from reaching the View widget self.window().focusPreviousChild() ev.accept() return True return super(Search, self).event(ev)
def showHelp(self): userguide.show(self.pagelist.currentItem().help)
def help(): import userguide userguide.show("musicview")
def slotHelp(self): """Called when the user clicks the small help button.""" userguide.show("snippets")
def showManual(self): """Shows the user guide, called when user presses F1.""" import userguide userguide.show()
def helpButtonClicked(self): userguide.show("engrave_layout")
def slotShowHelp(self): import userguide userguide.show(self.viewerName())