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): def staticItem2Item(staticItem):
typ = staticItem["type"] typ = staticItem["type"]
if typ is "Chord": if typ == "Chord":
return GuiChord(staticItem) return GuiChord(staticItem)
elif typ is "Rest": elif typ == "Rest":
return GuiRest(staticItem) return GuiRest(staticItem)
elif typ is "LegatoSlur": elif typ == "LegatoSlur":
return GuiLegatoSlur(staticItem) return GuiLegatoSlur(staticItem)
elif typ is "MultiMeasureRest": elif typ == "MultiMeasureRest":
return GuiMultiMeasureRest(staticItem) return GuiMultiMeasureRest(staticItem)
elif typ is "DynamicSignature": elif typ == "DynamicSignature":
return GuiDynamicSignature(staticItem) return GuiDynamicSignature(staticItem)
elif typ is "Clef": elif typ == "Clef":
return GuiClef(staticItem) return GuiClef(staticItem)
elif typ is "KeySignature": elif typ == "KeySignature":
return GuiKeySignature(staticItem) return GuiKeySignature(staticItem)
#elif typ is "TimeSignature": #elif typ == "TimeSignature":
# return GuiTimeSignature(staticItem) # return GuiTimeSignature(staticItem)
elif typ is "MetricalInstruction": elif typ == "MetricalInstruction":
return GuiMetricalInstruction(staticItem) return GuiMetricalInstruction(staticItem)
elif typ is "BlockEndMarker": elif typ == "BlockEndMarker":
return GuiBlockEndMarker(staticItem) return GuiBlockEndMarker(staticItem)
elif typ in ("InstrumentChange", "ChannelChange", "LilypondText"): elif typ in ("InstrumentChange", "ChannelChange", "LilypondText"):
return GuiGenericText(staticItem) return GuiGenericText(staticItem)

Loading…
Cancel
Save