Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.64 KB | None | 0 0
  1.     def __init__(self):
  2.         ui.ScriptWindow.__init__(self)
  3.         self.__LoadDialog()
  4.  
  5.         self.vid = None
  6.         self.eventClose = None
  7.         self.itemDataDict = {}
  8.         self.tooltipItem = None
  9.         self.costumButton = None <----------
  10.         self.costumBoard = None <-----------
  11.  
  12. def __LoadDialog(self):
  13.         try:
  14.             PythonScriptLoader = ui.PythonScriptLoader()
  15.             PythonScriptLoader.LoadScriptFile(self, "UIScript/EquipmentDialog.py")
  16.  
  17.             getObject = self.GetChild
  18.             self.board = getObject("Board")
  19.             self.slotWindow = getObject("EquipmentSlot")
  20.             self.costumButton = getObject("CostumeButton") <----------
  21.             self.costumBoard = getObject("CostumeBaseBoard")  <----------
  22.  
  23.         except:
  24.             import exception
  25.             exception.Abort("EquipmentDialog.LoadDialog.BindObject")
  26.  
  27.         self.costumBoard.Hide()
  28.         self.board.SetCloseEvent(ui.__mem_func__(self.Close))
  29.         self.slotWindow.SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
  30.         self.slotWindow.SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))
  31.         self.costumButton.SetEvent(ui.__mem_func__(self.CostumView))  <----------
  32.  
  33.     def CostumView(self):
  34.         if self.costumBoard.IsShow():
  35.             self.costumBoard.Hide()
  36.         else:
  37.             self.costumBoard.Show()
  38.  
  39.  
  40. """
  41.  
  42.  
  43. 1220 20:56:39284 :: Traceback (most recent call last):
  44.  
  45. 1220 20:56:39284 ::   File "ui.py", line 1016, in CallEvent
  46.  
  47. 1220 20:56:39284 ::   File "ui.py", line 87, in __call__
  48.  
  49. 1220 20:56:39284 ::   File "ui.py", line 69, in __call__
  50.  
  51. 1220 20:56:39284 ::   File "uiEquipmentDialog.py", line 75, in CostumView
  52.  
  53. 1220 20:56:39284 :: AttributeError
  54. 1220 20:56:39284 :: :
  55. 1220 20:56:39284 :: 'NoneType' object has no attribute 'IsShow'
  56. 1220 20:56:39284 ::
  57.  
  58.  
  59.  
  60. """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement