comparison of UILabelDef is comparing label value

This commit is contained in:
Jakub Trllo 2023-10-26 19:08:08 +02:00
parent e3d5352a27
commit 8a9a1e66f3

View file

@ -240,6 +240,11 @@ class UILabelDef(UIDef):
def __init__(self, label):
super(UILabelDef, self).__init__(label=label)
def __eq__(self, other):
if not super(UILabelDef, self).__eq__(other):
return False
return self.label == other.label:
# ---------------------------------------
# Attribute defintioins should hold value