[ wxwindows-Bugs-1748230 ] PyAssertionError: C++ assertion
"ucf.GotUpdate()
SourceForge.net
noreply at sourceforge.net
Thu Nov 15 08:19:43 PST 2007
Bugs item #1748230, was opened at 2007-07-05 10:16
Message generated for change (Comment added) made by wbruhin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1748230&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: wxMSW specific
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Werner F. Bruhin (wbruhin)
Assigned to: Nobody/Anonymous (nobody)
Summary: PyAssertionError: C++ assertion "ucf.GotUpdate()
Initial Comment:
I sometimes get this exception when changing/deleting part of a url in a wx.lib.masked.TextCtrl.
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?
----------------------------------------------------------------------
>Comment By: Werner F. Bruhin (wbruhin)
Date: 2007-11-15 17:19
Message:
Logged In: YES
user_id=649757
Originator: YES
I did a bit more testing on this and found that with the following steps I
can pretty often recreate it (still not always).
Note that the error only happens on a masked.TextCtrl with the style
wx.TE_AUTO_URL.
I used OpenOffice to create a link, i.e.:
- enter a text, something like: some text here for a link
- change the font of the text to "Aharoni" (others might work to)
- select this text and make it a HyperLink
- select the HyperLink and paste it into the text ctrl
- you should get the assertion error when tabbing out of the second
control, i.e. the masked with AUTO_URL style
I have attached a sample with multiple text ctrls, the error should happen
on the second control.
File Added: Frame1.py
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1748230&group_id=9863
More information about the wx-dev
mailing list