瀏覽代碼

docstring

master
Nils 2 年前
父節點
當前提交
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

載入中…
取消
儲存