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