예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 def showHelp(self):
     userguide.show(self.pagelist.currentItem().help)
예제 #4
0
 def help():
     import userguide
     userguide.show("musicview")
예제 #5
0
 def slotHelp(self):
     """Called when the user clicks the small help button."""
     userguide.show("snippets")
예제 #6
0
 def showHelp(self):
     userguide.show(self.pagelist.currentItem().help)
예제 #7
0
 def showManual(self):
     """Shows the user guide, called when user presses F1."""
     import userguide
     userguide.show()
예제 #8
0
 def help():
     import userguide
     userguide.show("musicview")
예제 #9
0
 def showManual(self):
     """Shows the user guide, called when user presses F1."""
     import userguide
     userguide.show()
예제 #10
0
 def slotHelp(self):
     """Called when the user clicks the small help button."""
     userguide.show("snippets")
예제 #11
0
 def helpButtonClicked(self):
     userguide.show("engrave_layout")
예제 #12
0
 def slotShowHelp(self):
     import userguide
     userguide.show(self.viewerName())
예제 #13
0
 def helpButtonClicked(self):
     userguide.show("engrave_layout")
예제 #14
0
 def slotShowHelp(self):
     import userguide
     userguide.show(self.viewerName())