Tipologie server:
*Resursă folosită: Adalet-CsWork-Fast Menu System(Hızlı Menü Sistemi)
*ServerFiles utilizat: tmp4
*Syserr:
Cod: Selectaţi tot
1217 21:18:14697 ::
uiPickMoney.py(line:20) LoadDialog
ui.py(line:3290) LoadScriptFile
ui.py(line:3409) LoadChildren
ui.py(line:2145) __init__
MoneyDialog.LoadDialog.LoadScript - <type 'exceptions.AttributeError'>:'BoardWithTitleBar' object has no attribute 'SetCloseEvent'
1217 21:18:14697 :: ============================================================================================================
1217 21:18:14697 :: Abort!!!!
*Detalii suplimentare: Cineva mi-a spus sa modific codul original
Cod: Selectaţi tot
def __LoadWindow(self):
if self.isLoaded == 1:
return
self.isLoaded = 1
try:
pyScrLoader = ui.PythonScriptLoader()
pyScrLoader.LoadScriptFile(self, "UIScript/FastInventoryWindow.py")
except:
import exception
exception.Abort("FastInventoryWindow.LoadWindow.LoadObject")
try:
self.wndFastInventoryLayer = self.GetChild("FastInventoryLayer")
self.GetChild("Menu_1").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_2").SetEvent(ui.__mem_func__(self.ToggleSwitchbotClick))
self.GetChild("Menu_3").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_4").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_5").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_6").SetEvent(ui.__mem_func__(self.ClickMenu1))
except:
import exception
exception.Abort("FastInventoryWindow.LoadWindow.BindObject")
try:
import uiSwitchbot
self.wndSwitchbot = uiSwitchbot.SwitchbotWindow()
except:
import exception
exception.Abort("FastInventoryWindow.LoadWindow.BindObject")
def ToggleOfflineShopClick(self):
return True
def ToggleSwitchbotClick(self):
if self.wndSwitchbot.IsShow(): self.wndSwitchbot.Close()
else: self.wndSwitchbot.Open()
def ClickMenu1(self):
if self.wndInventory.interface:
self.wndInventory.interface.ToggleSwitchbotWindow()
return TrueIn acest cod,daca las codul asa primesc eroare pentru ClickMeniu1 pentru ca nu este definit si nu are functie.
Cod: Selectaţi tot
def __LoadWindow(self):
if self.isLoaded == 1:
return
self.isLoaded = 1
try:
pyScrLoader = ui.PythonScriptLoader()
pyScrLoader.LoadScriptFile(self, "UIScript/FastInventoryWindow.py")
except:
import exception
exception.Abort("FastInventoryWindow.LoadWindow.LoadObject")
try:
self.wndFastInventoryLayer = self.GetChild("FastInventoryLayer")
self.GetChild("Menu_1").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_2").SetEvent(ui.__mem_func__(self.ClickMenu2))
self.GetChild("Menu_3").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_4").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_5").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_6").SetEvent(ui.__mem_func__(self.ClickMenu1))
except:
import exception
exception.Abort("FastInventoryWindow.LoadWindow.BindObject")
Eu am mai incercat sa fac in acest fel dar primesc tot aceiasi eroare. Am incercat sa fac mai multe functii dar tot nu merge.
Cod: Selectaţi tot
def __LoadWindow(self):
if self.isLoaded == 1:
return
self.isLoaded = 1
try:
pyScrLoader = ui.PythonScriptLoader()
pyScrLoader.LoadScriptFile(self, "UIScript/FastInventoryWindow.py")
except:
import exception
exception.Abort("FastInventoryWindow.LoadWindow.LoadObject")
try:
self.wndFastInventoryLayer = self.GetChild("FastInventoryLayer")
self.GetChild("Menu_1").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_2").SetEvent(ui.__mem_func__(self.ClickMenu2))
self.GetChild("Menu_3").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_4").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_5").SetEvent(ui.__mem_func__(self.ClickMenu1))
self.GetChild("Menu_6").SetEvent(ui.__mem_func__(self.ClickMenu1))
except:
import exception
exception.Abort("FastInventoryWindow.LoadWindow.BindObject")
def ClickMenu1(self):
return True
def ClickMenu2(self):
if self.wndInventory.interface:
self.wndInventory.interface()
return True
