Having this problem with fps mode system..
Any idea ? Thanks!!
syserr
Code
- 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 ::
uisystemoption.y lines 23-32
uisystemoption.py lines 133-151 fps system part
Code
- 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()