Browse Source

docstrings

master
Nils 2 years ago
parent
commit
481da0fb57
  1. 5
      qtgui/mainwindow.py

5
qtgui/mainwindow.py

@ -132,10 +132,11 @@ class MainWindow(TemplateMainWindow):
def zoom(self, scaleFactor:float):
"""Scale factor is absolute"""
"""Scale factor is absolute. zooming three times to 2.0 will result in 2.0"""
self.scoreView.zoom(scaleFactor)
def stretchXCoordinates(self, factor:float):
"""Cumulative factor. If you repeatedly send factor=2 it will double each time"""
self.scoreView.stretchXCoordinates(factor)
def updateStatusBar(self, exportCursorDict):
@ -164,6 +165,8 @@ class MainWindow(TemplateMainWindow):
def toggleMainView(self):
"""Switch between the Track Editor and Score/Block Editor"""
if self.ui.actionData_Editor.isChecked():
self.ui.mainStackWidget.setCurrentIndex(self.ui.mainStackWidget.indexOf(self.trackEditor))
self.scoreView.setEnabled(False) #disables shortcut like cursor movement, but not all of them.

Loading…
Cancel
Save