Try changing self.unit to self.__owner.unit... I don't remember offhand whether the base frame or the element frame is passed as self, but if you're getting an error with self.unit then it's probably the element frame.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
|