Browse Source

Add track number to status bar info. Also reformat

master
Nils 2 years ago
parent
commit
231749f828
  1. 4
      qtgui/mainwindow.py

4
qtgui/mainwindow.py

@ -151,13 +151,13 @@ class MainWindow(TemplateMainWindow):
if (not ly) or len(ly) > 13:
ly = ""
else:
ly = "Lilypond: <b>{}</b>".format(ly.replace("<", "&#60;").replace(">", "&#62;"))
ly = " | Lilypond: <b>{}</b>".format(ly.replace("<", "&#60;").replace(">", "&#62;"))
itemMessage = "Item: <b>{}</b> {}".format(i.__class__.__name__, ly)
else:
itemMessage = "" #Appending
positionMessage = "Pos: <b>{}</b> Ticks: <b>{}</b> Pitch: <b>{}</b>".format(c["position"], c["tickindex"], c["lilypondPitch"])
positionMessage = " Pitch: <b>{}</b> | Track: <b>{}</b> | Pos: <b>{}</b> | Ticks: <b>{}</b> ".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

Loading…
Cancel
Save