Hi,
I get this exception:
wx._core.PyAssertionError: C++ assertion "!HasFlag(wxCB_READONLY)" failed at ..\..\src\msw\combobox.cpp(403) in wxComboBox::GetEditHWND(): read-only combobox doesn't have any edit control
File "c:\dev\twcbv4\twcbsrc\controllers\freport.py", line 223, in <module>
dlg.ShowModal()
File "c:\Python27\Lib\site-packages\wx-2.9.5-msw\wx\_windows.py", line 805, in ShowModal
return _windows_.Dialog_ShowModal(*args, **kwargs)
File "c:\Python27\Lib\site-packages\wx-2.9.5-msw\wx\_core.py", line 16778, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "c:\Python27\Lib\site-packages\wx-2.9.5-msw\wx\_core.py", line 13261, in SetInsertionPoint
return _core_.TextEntryBase_SetInsertionPoint(*args, **kwargs)
This is in my application.
In the demo I can not recreate it with the wx.Combobox but it does happen with masked.combobox.
If I add "style=wx.CB_READONLY" to the self.dynamicbox and then use the mousewheel on that control the exception is shown the demo console.
Werner