Jump to content

AttributeError: 'NoneType' object has no attribute 'IsShow'


Recommended Posts

  • Forum Moderator
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()

 

  • Love 1
Link to comment
Share on other sites

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

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.