From 481da0fb57164e4d734e6577cb53f382ee595174 Mon Sep 17 00:00:00 2001 From: Nils Date: Sat, 14 May 2022 19:21:06 +0200 Subject: [PATCH] docstrings --- qtgui/mainwindow.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qtgui/mainwindow.py b/qtgui/mainwindow.py index 33ae29e..68c411e 100644 --- a/qtgui/mainwindow.py +++ b/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.