self.description = description
self.iconstr = icon
+ self.icon = None
self.__call__ = fnc
if type(self.iconstr) is str:
self.icon = loadPNG(path + self.iconstr)
else:
- self.icon = None
\ No newline at end of file
+ self.icon = None
+
+ def __eq__(self, other):
+ return self.__call__ == other.__call__