Exemple #1
0
 def slotAccepted(self):
     """Makes the score and puts it in the editor."""
     from . import build
     builder = build.Builder(self)
     cursor = self.parent().currentView().textCursor()
     with cursortools.compress_undo(cursor):
         cursortools.insert_select(cursor, builder.text())
         indent.re_indent(cursor)
Exemple #2
0
 def slotAccepted(self):
     """Makes the score and puts it in the editor."""
     if self._createNewDocument:
         self.parent().setCurrentDocument(app.openUrl(QUrl()))
     from . import build
     builder = build.Builder(self)
     cursor = self.parent().currentView().textCursor()
     cursortools.insert_select(cursor, builder.text())
     with cursortools.compress_undo(cursor, True):
         indent.re_indent(cursor)