Hello.
I’m Toufik and I’m new in programming. First I’m not a native English speaker and I’m sorry for the mistakes in writing
I’ve a project in python 2.7 and wx , and the idea is to have
three choices :
- the student choice to select the student name.
- and the stage choice to select the stage .
- and the course choice to select the course
But it didn’t work and I got the following error .
Please help me.
Traceback (most recent call last):
File “E:\quran\progect\toufik\test.py”, line 63, in
myFrame(None,-1,‘frame’, (0, 4), (400, 600))
File “E:\quran\progect\toufik\test.py”, line 43, in init
course = os.listdir(self.stageChoice.GetClientData(self.stageChoice.GetSelec
tion()))
File “C:\Python27\lib\site-packages\wx-3.0-msw\wx_core.py”, line 12923, in Ge
tClientData
return core.ItemContainer_GetClientData(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion “IsValid(n)” failed at …..\src\common
\ctrlsub.cpp(193) in wxItemContainer::GetClientObject(): Invalid index passed to
GetClientObject()
test.py (2.39 KB)