Jemand eine Lösung für dieses Problem :
0226 15:53:01559 :: Key down: 59
0226 15:54:20459 ::
uiAntiMultipleFarm.py(line:151) __LoadWindow
ui.py(line:9578) GetChild
AntiMultipleFarmWnd.__LoadScript.LoadObject - <type 'exceptions.KeyError'>:'anti_farm_bg_layer'
0226 15:54:20459 :: ============================================================================================================
0226 15:54:20459 :: Abort!!!!
uiscript/..
window = {
"name" : "AntiMultipleFarmWnd",
"style" : ("movable", "float",),
"x" : 0,
"y" : 0,
"width" : BOARD_WIDTH,
"height" : BOARD_HEIGHT,
"children" :
[
{
"name" : "board",
"type" : "board_with_titlebar_without_button",
"x" : 0,
"y" : 0,
"width" : BOARD_WIDTH,
"height" : BOARD_HEIGHT,
"title" : uiScriptLocale.ANTI_MULTIPLE_FARM_WND_TITLE,
"children" :
[
{
"name" : "anti_farm_bg_layer",
"type" : "expanded_image",
"style" : ("attach", "ltr"),
"x" : 7,
"y" : 32,
"image" : "d:/ymir work/ui/anti_multiple_farm/anti_farm_bg_layer.tga",
"children" :
[
{
"name" : "base_text_info",
"type" : "text",
"x" : 0,
"y" : 3,
"text_horizontal_align" : "center",
"horizontal_align" : "center",
"text" : uiScriptLocale.ANTI_MULTIPLE_FARM_BASE_TEXT,
},
],
},
root..
def __LoadWindow(self):
try:
pyScrLoader = ui.PythonScriptLoader()
pyScrLoader.LoadScriptFile(self, "uiscript/antimultiplefarmwindow.py")
GetObject = self.GetChild
self.main_layer_parent = GetObject("anti_farm_bg_layer")
self.scrollbar = GetObject("scrollbar")
self.scrollbar.SetScrollEvent(ui.__mem_func__(self.__OnScroll))
self.edit_button = GetObject("edit_button")
self.edit_button.SetEvent(ui.__mem_func__(self.OnClickEditButton))
self.close_button = GetObject("close_button")
self.close_button.SetEvent(ui.__mem_func__(self.OnClickCloseButton))
self.refresh_button = GetObject("refresh_button")
self.refresh_button.SetEvent(ui.__mem_func__(self.OnRefreshData))
self.save_edit_button = GetObject("save_edit_button")
self.save_edit_button.SetEvent(ui.__mem_func__(self.OnSaveEditStatus))
self.close_edit_button = GetObject("close_edit_button")
self.close_edit_button.SetEvent(ui.__mem_func__(self.OnClickEditButton), VIEW_MODE)
except:
import exception
exception.Abort("AntiMultipleFarmWnd.__LoadScript.LoadObject")