[wxPython-users] masked with wx.TE_AUTO_URL

Werner F. Bruhin werner.bruhin at free.fr
Thu Jul 5 01:16:58 PDT 2007


Hi Robin,

Robin Dunn wrote:
> Werner F. Bruhin wrote:
>> 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.
>
> Not a clue.  The comment in the code by the assert says this:
>
>     // It's okay for EN_UPDATE to not be sent if the selection is 
> empty and
>     // the text is empty, otherwise warn the programmer about it.
>
>
> You're on Vista, right?
Yes.
> If so then perhaps something has changed with the native widget 
> there.  Please enter a bug report about this.
Done, as reference 1748230

Werner





More information about the wxpython-users mailing list