We database (Access) that contains some text in Hebrew
When I'am trying to load wxComboBox with data I've got
in ADO Recordset it fails
Here the code I'm using:
self.__rs.Open ("select CategoryID, CategoryName from Category;",
self.__conn, 1)
lstCategoryNames=[]
while not self.__rs.EOF:
lstCategoryNames.append((self.__rs.Fields("CategoryName").Value))
self.__rs.MoveNext()
wxStaticText(self, -1, "???", pos=(675,80))
self.cbCategory = wxComboBox(self, wxNewId(), lstCategoryNames[0],
wxPoint(450,80), wxSize(220, -1),
lstCategoryNames, style=wxCB_READONLY | wxCB_DROPDOWN)
Here the FULL error screen
Traceback (most recent call last):
File "C:\Documents and Settings\Owner\My
Documents\Reuven\Lessons\ExamTest.py"
, line 213, in ?
pnlEditSong(frame, wxNewId())
File "C:\Documents and Settings\Owner\My
Documents\Reuven\Lessons\ExamTest.py"
, line 67, in __init__
lstCategoryNames, style=wxCB_READONLY | wxCB_DROPDOWN)
File "C:\Python22\Lib\site-packages\wxPython\controls.py", line 330, in
__init
···
__
self.this = apply(controlsc.new_wxComboBox,_args,_kwargs)
TypeError: Unable to convert string
12:58:51: Debug: e:\projects\wx\src\msw\app.cpp(439):
'UnregisterClass(canvas)'
failed with error 0x00000584 (class still has open windows.).