Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __init__(self):
- ui.ScriptWindow.__init__(self)
- self.__LoadDialog()
- self.vid = None
- self.eventClose = None
- self.itemDataDict = {}
- self.tooltipItem = None
- self.costumButton = None <----------
- self.costumBoard = None <-----------
- def __LoadDialog(self):
- try:
- PythonScriptLoader = ui.PythonScriptLoader()
- PythonScriptLoader.LoadScriptFile(self, "UIScript/EquipmentDialog.py")
- getObject = self.GetChild
- self.board = getObject("Board")
- self.slotWindow = getObject("EquipmentSlot")
- self.costumButton = getObject("CostumeButton") <----------
- self.costumBoard = getObject("CostumeBaseBoard") <----------
- except:
- import exception
- exception.Abort("EquipmentDialog.LoadDialog.BindObject")
- self.costumBoard.Hide()
- self.board.SetCloseEvent(ui.__mem_func__(self.Close))
- self.slotWindow.SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
- self.slotWindow.SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))
- self.costumButton.SetEvent(ui.__mem_func__(self.CostumView)) <----------
- def CostumView(self):
- if self.costumBoard.IsShow():
- self.costumBoard.Hide()
- else:
- self.costumBoard.Show()
- """
- 1220 20:56:39284 :: Traceback (most recent call last):
- 1220 20:56:39284 :: File "ui.py", line 1016, in CallEvent
- 1220 20:56:39284 :: File "ui.py", line 87, in __call__
- 1220 20:56:39284 :: File "ui.py", line 69, in __call__
- 1220 20:56:39284 :: File "uiEquipmentDialog.py", line 75, in CostumView
- 1220 20:56:39284 :: AttributeError
- 1220 20:56:39284 :: :
- 1220 20:56:39284 :: 'NoneType' object has no attribute 'IsShow'
- 1220 20:56:39284 ::
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement