Browse Source

docstring

master
Nils 2 years ago
parent
commit
d1bcca9d83
  1. 6
      qtgui/submenus.py

6
qtgui/submenus.py

@ -474,11 +474,15 @@ class TransposeMenu(Submenu):
self.done(True)
class SecondaryProperties(Submenu):
"""Lilypodn Settings and Properties.
Directly edits the backend score meta data. There is no api and no callbacks"""
def __init__(self, mainWindow):
"""Directly edits the backend score meta data. There is no api and no callbacks"""
super().__init__(mainWindow, translate("submenus", "Lilypond Properties and Metada"), hasOkCancelButtons=True)
dictionary = api.getMetadata() #Do not confuse with template/config METADATA. This is Lilypond title, composer etc.
#The dictionary is mutable. We edit in place. #TODO: This might bite us in the future. But maybe it will not...
test = set(type(key) for key in dictionary.keys())
assert len(test) == 1

Loading…
Cancel
Save