Hello everyone, I need some help.
I have added the Modular Admin-Panel system from Aslan.
I will preface this by saying that I had to make a few changes to get it working in my files (including creating the missing file).
However, since I added the item creation module I have encountered another error that I cannot solve:
Hello everyone, I need some help.
I have added the Modular Admin-Panel system from Aslan.
I will preface this by saying that I had to make a few changes to get it working in my files (including creating the missing file).
However, since I added the item creation module I have encountered another error that I cannot solve:
- 0312 15:31:13892 ::
- adminpanel_module/aslan_create_item.py(line:104) __LoadWindow
- ui.py(line:3961) GetChild
- CreateItemWindow.LoadWindow.BindObject - <type 'exceptions.KeyError'>:'field_select_grade'
- 0312 15:31:13892 :: ============================================================================================================
- 0312 15:31:13892 :: Abort!!!!
I'm sure the system correctly locates the file and I can't figure out where the problem is.
- def __LoadWindow(self):
- try:
- pyScrLoader = ui.PythonScriptLoader()
- pyScrLoader.LoadScriptFile(self, "adminpanel_module/uiscript/aslan_create_item.py")
- except:
- import exception
- exception.Abort("CreateItemWindow.LoadWindow.LoadObject")
-
- try:
- self.wndSelect = SelectWindow(self)
- self.GetChild("board").CloseButtonHide()
- self.configFields = [self.GetChild("field_select_grade"), self.GetChild("field_set_count"), self.GetChild("field_set_player")]
- self.configOverlays = [self.GetChild("field_select_grade_overlay"), self.GetChild("field_set_count_overlay"), self.GetChild("field_player_overlay")]
- self.configOverlays[0].SetAlpha(0.7)
- self.configOverlays[1].SetAlpha(0.7)
- self.configOverlays[2].SetAlpha(0.7)
- self.configFields[1].SetStringEvent("MOUSE_LEFT_BUTTON_DOWN", ui.__mem_func__(self.SetEditLineFocus), 0)
- self.configFields[2].SetStringEvent("MOUSE_LEFT_BUTTON_DOWN", ui.__mem_func__(self.SetEditLineFocus), 1)
-
- for i in xrange(5):
- self.GetChild("field_select_bonus_%d" % i).SetEvent(ui.__mem_func__(self.ClickBonusButton), i)
-
- for i in xrange(3):
- self.GetChild("field_select_socket_%d" % i).SetEvent(ui.__mem_func__(self.ClickSocketButton), i)
- self.GetChild("field_select_socket_%d" % i).SetOverEvent(ui.__mem_func__(self.OverInSockets), i)
- self.GetChild("field_select_socket_%d" % i).SetOverOutEvent(ui.__mem_func__(self.OverOutItem))
-
- self.GetChild("editline_set_count").SetTabEvent(lambda arg = 1 : self.SetEditLineFocus(arg))
- self.GetChild("editline_set_count").SetReturnEvent(ui.__mem_func__(self.ClickCreateButton))
- self.GetChild("editline_set_player").SetTabEvent(lambda arg = 0 : self.SetEditLineFocus(arg))
- self.GetChild("editline_set_player").SetReturnEvent(ui.__mem_func__(self.ClickCreateButton))
-
- listBoxSearch = ListBoxSearch()
- listBoxSearch.SetParent(self.GetChild("itemlist_background"))
- listBoxSearch.SetPosition(4, 4)
- listBoxSearch.SetSize(200-4-4, 17 * listBoxSearch.stepSize)
- listBoxSearch.SetEvent(ui.__mem_func__(self.OnSelectItem))
- listBoxSearch.SetMinSearchTextLen(1)
- listBoxSearch.SetEditLine(self.GetChild("itemsearch"))
- listBoxSearch.Show()
- self.listBoxSearch = listBoxSearch
-
- self.selectRefine = ui.ComboBox()
- self.selectRefine.SetParent(self.GetChild("field_select_grade"))
- self.selectRefine.AddFlag('float')
- self.selectRefine.SetPosition(3, 18)
- self.selectRefine.SetSize(188, 15)
- self.selectRefine.SetEvent(self.OnSelectRefine)
-
- self.GetChild("ItemSlot").SetOverInItemEvent(ui.__mem_func__(self.OverInItem))
- self.GetChild("ItemSlot").SetOverOutItemEvent(ui.__mem_func__(self.OverOutItem))
-
- self.GetChild("CreateButton").SetEvent(ui.__mem_func__(self.ClickCreateButton))
- self.GetChild("ResetButton").SetEvent(ui.__mem_func__(self.ClickResetButton))
-
- self.tooltipItem = uiToolTip.ItemToolTip()
- self.tooltipItem.Hide()
- except:
- import exception
- exception.Abort("CreateItemWindow.LoadWindow.BindObject")
Alles anzeigen
Thank you very much for help