masked with wx.TE_AUTO_URL

Werner F. Bruhin werner.bruhin at free.fr
Wed Jul 4 07:13:02 PDT 2007


I sometimes get this exception when changing/deleting part of a URL.

**** Wed Jul 04 16:09:06 2007 ****
Traceback (most recent call last):
  File 
"C:\Python25\lib\site-packages\wx-2.8-msw-ansi\wx\lib\masked\maskededit.py", 
line 5524, in _OnKillFocus
    self._AdjustField(self._GetInsertionPoint())
  File 
"C:\Python25\lib\site-packages\wx-2.8-msw-ansi\wx\lib\masked\maskededit.py", 
line 4270, in _AdjustField
    self._SetValue(newvalue)
  File 
"C:\Python25\Lib\site-packages\wx-2.8-msw-ansi\wx\lib\masked\textctrl.py", 
line 164, in _SetValue
    wx.TextCtrl.SetValue(self, value)
  File "C:\Python25\Lib\site-packages\wx-2.8-msw-ansi\wx\_controls.py", 
line 1708, in SetValue
    return _controls_.TextCtrl_SetValue(*args, **kwargs)
PyAssertionError: C++ assertion "ucf.GotUpdate() || ( !HasSelection() && 
value.empty() )" failed at ..\..\src\msw\textctrl.cpp(961) in 
wxTextCtrl::StreamIn(): EM_STREAMIN didn't send EN_UPDATE?

Anyone has an idea what might cause this.


Werner




More information about the wxpython-users mailing list