Creo 26 Posted April 5, 2021 Share Posted April 5, 2021 Error; uiCharacter.py", line 880, in OnUpdate if self.toolTip.IsShow() and act_tip==6: AttributeError: 'NoneType' object has no attribute 'IsShow uicharacter.py; https://pastebin.com/niD6b6sL 1 1 1 Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10328 Posted April 5, 2021 Forum Moderator Share Posted April 5, 2021 def __init__(self): [...] self.toolTip = uiToolTip.ToolTip() self.toolTip.Hide() self.__Initialize() [...] def __Initialize(self): [...] self.toolTip = None [...] You declared the tooltip variable in the __init__ method, then you set it as None in __Initialize method. You should remove the second declaration, line 110. Also, you've to replace the Close method with this: def Close(self): if self.toolTipSkill: self.toolTipSkill.Hide() if self.toolTip: self.toolTip.Hide() self.Hide() 1 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Creo 26 Posted April 5, 2021 Author Share Posted April 5, 2021 8 hours ago, VegaS™ said: def __init__(self): [...] self.toolTip = uiToolTip.ToolTip() self.toolTip.Hide() self.__Initialize() [...] def __Initialize(self): [...] self.toolTip = None [...] You declared the tooltip variable in the __init__ method, then you set it as None in __Initialize method. You should remove the second declaration, line 110. Also, you've to replace the Close method with this: def Close(self): if self.toolTipSkill: self.toolTipSkill.Hide() if self.toolTip: self.toolTip.Hide() self.Hide() tysm! solved Link to comment Share on other sites More sharing options...
Recommended Posts