Çözüldü 'ExpandedImageBox' object has no attribute 'SetEvent'

Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

tc1322

MT Üye
MT Üye
Mesaj
363
Çözümler
17
Beğeni
473
Puan
799
Ticaret Puanı
0
Başlıktaki hata hangi sistemden sonra bu meydana geldi inanın hiç bir fikrim yok en son ki yedeklerimi geri çekip denedim fakat ondada bozuk. Başına gelen var mı? biraz araştırdım UIScript bozulmuş gibi bir sonuca vardım sistemin ilk dosyalarıyla değiştirdim fakat yine çözülmedi. Aşağı syserr ve uicharacter.py ekliyorum


Linkleri görebilmek için giriş yap veya kayıt ol.


Syserr:
1108 17:51:29884 :: Traceback (most recent call last):

1108 17:51:29884 ::   File "ui.py", line 1460, in CallEvent

1108 17:51:29884 ::   File "ui.py", line 88, in __call__

1108 17:51:29884 ::   File "ui.py", line 70, in __call__

1108 17:51:29884 ::   File "uiCharacter.py", line 504, in __ClickExpandButton

1108 17:51:29884 ::   File "uiCharacterDetails.py", line 109, in __init__

1108 17:51:29884 ::   File "uiCharacterDetails.py", line 211, in __LoadScript

1108 17:51:29885 :: AttributeError
1108 17:51:29885 :: :
1108 17:51:29885 :: 'ExpandedImageBox' object has no attribute 'SetEvent'
1108 17:51:29885 ::
 
Çözüm
Aynı hatayı alanlar ui.py alttaki classtan eksikleri geçirin veya direk bunu kullanın. Daha önceden açılan şey eksiklik duyma başladı :D
ExpandedImageBox:
class ExpandedImageBox(ImageBox):
    def __init__(self, layer = "UI"):
        ImageBox.__init__(self, layer)
        self.eventFunc = {"mouse_click" : None, "mouse_over_in" : None, "mouse_over_out" : None}
        self.eventArgs = {"mouse_click" : None, "mouse_over_in" : None, "mouse_over_out" : None}
    def __del__(self):
        ImageBox.__del__(self)
        self.eventFunc = None
        self.eventArgs = None
    def RegisterWindow(self, layer):
        self.hWnd = wndMgr.RegisterExpandedImageBox(self, layer)

    def SetScale(self, xScale, yScale):
        wndMgr.SetScale(self.hWnd, xScale...
Aynı hatayı alanlar ui.py alttaki classtan eksikleri geçirin veya direk bunu kullanın. Daha önceden açılan şey eksiklik duyma başladı :D
ExpandedImageBox:
class ExpandedImageBox(ImageBox):
    def __init__(self, layer = "UI"):
        ImageBox.__init__(self, layer)
        self.eventFunc = {"mouse_click" : None, "mouse_over_in" : None, "mouse_over_out" : None}
        self.eventArgs = {"mouse_click" : None, "mouse_over_in" : None, "mouse_over_out" : None}
    def __del__(self):
        ImageBox.__del__(self)
        self.eventFunc = None
        self.eventArgs = None
    def RegisterWindow(self, layer):
        self.hWnd = wndMgr.RegisterExpandedImageBox(self, layer)

    def SetScale(self, xScale, yScale):
        wndMgr.SetScale(self.hWnd, xScale, yScale)

    def SetOrigin(self, x, y):
        wndMgr.SetOrigin(self.hWnd, x, y)

    def SetRotation(self, rotation):
        wndMgr.SetRotation(self.hWnd, rotation)

    def SetRenderingMode(self, mode):
        wndMgr.SetRenderingMode(self.hWnd, mode)

    def SetRenderingRect(self, left, top, right, bottom):
        wndMgr.SetRenderingRect(self.hWnd, left, top, right, bottom)
        
    def SetPercentage(self, curValue, maxValue):
        if maxValue:
            self.SetRenderingRect(0.0, 0.0, -1.0 + float(curValue) / float(maxValue), 0.0)
        else:
            self.SetRenderingRect(0.0, 0.0, 0.0, 0.0)

    def GetWidth(self):
        return wndMgr.GetWindowWidth(self.hWnd)

    def GetHeight(self):
        return wndMgr.GetWindowHeight(self.hWnd)

    def SetEvent(self, func, *args) :
        result = self.eventFunc.has_key(args[0])
        if result :
            self.eventFunc[args[0]] = func
            self.eventArgs[args[0]] = args
        else :
            print "[ERROR] ui.py SetEvent, Can`t Find has_key : %s" % args[0]
 
Çözüm
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst