Having this problem with fps mode system..
Any idea ? Thanks!!
syserr
- 0527 19:23:20540 :: Traceback (most recent call last):
- 0527 19:23:20540 :: File "ui.py", line 1835, in CallEvent
- 0527 19:23:20540 :: File "ui.py", line 96, in __call__
- 0527 19:23:20540 :: File "ui.py", line 78, in __call__
- 0527 19:23:20540 :: File "uisystem.py", line 114, in __ClickSystemOptionButton
- 0527 19:23:20540 :: File "uisystemoption.py", line 28, in __init__
- 0527 19:23:20540 :: File "uisystemoption.py", line 145, in __Load
- 0527 19:23:20540 :: TypeError
- 0527 19:23:20540 :: :
- 0527 19:23:20540 :: __init__() takes exactly 1 argument (5 given)
- 0527 19:23:20540 ::
Alles anzeigen
uisystemoption.y lines 23-32
- class OptionDialog(ui.ScriptWindow):
- def __init__(self):
- ui.ScriptWindow.__init__(self)
- self.__Initialize()
- self.__Load()
- def __del__(self):
- ui.ScriptWindow.__del__(self)
- print " -------------------------------------- DELETE SYSTEM OPTION DIALOG"
uisystemoption.py lines 133-151 fps system part
- self.GetChild("fps_change_btn").SetEvent(ui.__mem_func__(self.ChangeFPS))
- self.currentSelectFPS = systemSetting.GetFPS()
- systemSetting.SetFPS(systemSetting.GetFPS())
- self.fpsInfo = {
- 0: "30 FPS",
- 1: "60 FPS",
- 2: "90 FPS",
- 3: "120 FPS",
- 4: "150 FPS",
- 5: "180 FPS",
- 6: "220 FPS",
- }
- self.fps = ui.ComboBox(self.GetChild("board"),"d:/ymir work/ui/pattern/select_image.tga",30,275)
- self.fps.SetCurrentItem(self.fpsInfo[self.currentSelectFPS])
- self.fps.SetParent(self.GetChild("board"))
- for index, data in self.fpsInfo.iteritems():
- self.fps.InsertItem(index, data)
- self.fps.SetEvent(lambda x, point=proxy(self): point.__ClickFPS(x))
- self.fps.Show()
Alles anzeigen