self.where = [ where ]
self.description = description
- self.iconstr = icon
+ if type(icon) is str or icon is None:
+ self.iconstr = icon
+ self.icon = None
+ else:
+ self.icon = icon
self.__call__ = fnc
self.icon = loadPNG(path + self.iconstr)
else:
self.icon = None
+
+ def __eq__(self, other):
+ return self.__call__ == other.__call__