From 231749f828de8345a744183b09ceab9558cd7fab Mon Sep 17 00:00:00 2001 From: Nils Date: Sun, 15 May 2022 15:48:02 +0200 Subject: [PATCH] Add track number to status bar info. Also reformat --- qtgui/mainwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qtgui/mainwindow.py b/qtgui/mainwindow.py index 68c411e..dc6d115 100644 --- a/qtgui/mainwindow.py +++ b/qtgui/mainwindow.py @@ -151,13 +151,13 @@ class MainWindow(TemplateMainWindow): if (not ly) or len(ly) > 13: ly = "" else: - ly = "Lilypond: {}".format(ly.replace("<", "<").replace(">", ">")) + ly = " | Lilypond: {}".format(ly.replace("<", "<").replace(">", ">")) itemMessage = "Item: {} {}".format(i.__class__.__name__, ly) else: itemMessage = "" #Appending - positionMessage = "Pos: {} Ticks: {} Pitch: {}".format(c["position"], c["tickindex"], c["lilypondPitch"]) + positionMessage = " Pitch: {} | Track: {} | Pos: {} | Ticks: {} ".format(c["lilypondPitch"], c["trackIndex"]+1, c["position"], c["tickindex"]) message = "{} | {}".format(itemMessage, positionMessage) #self.statusBar().showMessage(message) #overriden by tool tips, even empty ones