Четверг, 25.12.2025, 11:27


Приветствую Вас Гость | RSS


Главная | Ошибка в скрипте - Форум | Регистрация | Вход
Metin2 сервера, руководства, гайды, читы, боты

[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]

  • Страница 1 из 1
  • 1
Ошибка в скрипте
DeadHunter Дата: Понедельник, 27.08.2012, 03:05 | Сообщение # 1

Сообщений: 1087

Статус: Не на сайте
Code


0827 04:07:27993 :: Traceback (most recent call last):

0827 04:07:27996 ::   File "ui.py", line 1006, in CallEvent

0827 04:07:27997 ::   File "ui.py", line 87, in __call__

0827 04:07:27998 ::   File "ui.py", line 69, in __call__

0827 04:07:27999 ::   File "uiswitchbot.py", line 634, in __Wish_1_Option

0827 04:07:28000 ::   File "uiswitchbot.py", line 889, in __init__

0827 04:07:28002 ::   File "uiswitchbot.py", line 900, in Show

0827 04:07:28003 ::   File "uiswitchbot.py", line 928, in __Load

0827 04:07:28005 ::   File "uiswitchbot.py", line 996, in UpdateFileList

0827 04:07:28006 ::   File "ui.py", line 340, in AppendItem

0827 04:07:28007 ::   File "uiswitchbot.py", line 1123, in SetSize

0827 04:07:28007 :: AttributeError
0827 04:07:28007 :: :    
0827 04:07:28007 :: 'int' object has no attribute 'GetText'
0827 04:07:28007 ::    


Code

class Item(ui.ListBoxEx.Item):
   def __init__(self, fileName):
    ui.ListBoxEx.Item.__init__(self)
    self.canLoad=0
    self.text=fileName
    self.textLine=self.__CreateTextLine(fileName[:FILE_NAME_LEN])            

   def __del__(self):
    ui.ListBoxEx.Item.__del__(self)

   def GetText(self):
    return self.text

   def SetSize(self, width, height):
    ui.ListBoxEx.Item.SetSize(self, 6*len(self.textLine.GetText()) + 4, height)

   def __CreateTextLine(self, fileName):
    textLine=ui.TextLine()
    textLine.SetParent(self)
    textLine.SetPosition(0, 0)
    textLine.SetText(fileName)
    textLine.Show()
    return TRUE

   def OnPressExitKey(self):
    #self.eventExit()
    return TRUE


Есть варианты у кого-нибудь как поправить?

Добавлено (27.08.2012, 02:05)
---------------------------------------------
нашел косяк, тему в топку





Сообщение отредактировал DeadHunter - Понедельник, 27.08.2012, 02:37

 
Сообщение
Code


0827 04:07:27993 :: Traceback (most recent call last):

0827 04:07:27996 ::   File "ui.py", line 1006, in CallEvent

0827 04:07:27997 ::   File "ui.py", line 87, in __call__

0827 04:07:27998 ::   File "ui.py", line 69, in __call__

0827 04:07:27999 ::   File "uiswitchbot.py", line 634, in __Wish_1_Option

0827 04:07:28000 ::   File "uiswitchbot.py", line 889, in __init__

0827 04:07:28002 ::   File "uiswitchbot.py", line 900, in Show

0827 04:07:28003 ::   File "uiswitchbot.py", line 928, in __Load

0827 04:07:28005 ::   File "uiswitchbot.py", line 996, in UpdateFileList

0827 04:07:28006 ::   File "ui.py", line 340, in AppendItem

0827 04:07:28007 ::   File "uiswitchbot.py", line 1123, in SetSize

0827 04:07:28007 :: AttributeError
0827 04:07:28007 :: :    
0827 04:07:28007 :: 'int' object has no attribute 'GetText'
0827 04:07:28007 ::    


Code

class Item(ui.ListBoxEx.Item):
   def __init__(self, fileName):
    ui.ListBoxEx.Item.__init__(self)
    self.canLoad=0
    self.text=fileName
    self.textLine=self.__CreateTextLine(fileName[:FILE_NAME_LEN])            

   def __del__(self):
    ui.ListBoxEx.Item.__del__(self)

   def GetText(self):
    return self.text

   def SetSize(self, width, height):
    ui.ListBoxEx.Item.SetSize(self, 6*len(self.textLine.GetText()) + 4, height)

   def __CreateTextLine(self, fileName):
    textLine=ui.TextLine()
    textLine.SetParent(self)
    textLine.SetPosition(0, 0)
    textLine.SetText(fileName)
    textLine.Show()
    return TRUE

   def OnPressExitKey(self):
    #self.eventExit()
    return TRUE


Есть варианты у кого-нибудь как поправить?

Добавлено (27.08.2012, 02:05)
---------------------------------------------
нашел косяк, тему в топку


Автор - DeadHunter
Дата добавления - 27.08.2012 в 03:05
  • Страница 1 из 1
  • 1
Поиск:

Загрузка..

Яндекс.Метрика
Copyright Necromancers © 2025 Сайт основан на мотивах Метин-2


Все права на некоторые элементы дизайна принадлежат официальному сайту www.metin-2.ru