Browse Source

wrong comparison. is -> ==

master
Nils 4 years ago
parent
commit
6a79c15250
  1. 20
      qtgui/items.py

20
qtgui/items.py

@ -865,26 +865,26 @@ class GuiGenericText(GuiItem):
def staticItem2Item(staticItem):
typ = staticItem["type"]
if typ is "Chord":
if typ == "Chord":
return GuiChord(staticItem)
elif typ is "Rest":
elif typ == "Rest":
return GuiRest(staticItem)
elif typ is "LegatoSlur":
elif typ == "LegatoSlur":
return GuiLegatoSlur(staticItem)
elif typ is "MultiMeasureRest":
elif typ == "MultiMeasureRest":
return GuiMultiMeasureRest(staticItem)
elif typ is "DynamicSignature":
elif typ == "DynamicSignature":
return GuiDynamicSignature(staticItem)
elif typ is "Clef":
elif typ == "Clef":
return GuiClef(staticItem)
elif typ is "KeySignature":
elif typ == "KeySignature":
return GuiKeySignature(staticItem)
#elif typ is "TimeSignature":
#elif typ == "TimeSignature":
# return GuiTimeSignature(staticItem)
elif typ is "MetricalInstruction":
elif typ == "MetricalInstruction":
return GuiMetricalInstruction(staticItem)
elif typ is "BlockEndMarker":
elif typ == "BlockEndMarker":
return GuiBlockEndMarker(staticItem)
elif typ in ("InstrumentChange", "ChannelChange", "LilypondText"):
return GuiGenericText(staticItem)

Loading…
Cancel
Save