Jump to content
  • 0

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


Creo

Question

2 answers to this question

Recommended Posts

  • 0
  • 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 post
  • 0
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 post
Guest
This topic is now closed to further replies.


×
×
  • 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.