|
|
@ -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 |
|
|
|