[wxPython-users] new error

Peter Damoc pdamoc at gmail.com
Wed Aug 2 08:48:26 PDT 2006


On 8/2/06, Robin Dunn <robin at alldunn.com> wrote:
>
> Peter Damoc wrote:
> > I've started using testing the 2.7 releases and I keep receiving this
> error:
> >
> >   File "cmsaccess.py", line 288, in OnDragOver
> >     self.parent.Refresh()
> >   File "C:\Python24\Lib\site-packages\wx-2.7.0-msw-unicode\wx\_core.py
> > ", line 8714, in Refresh
> >     return _core_.Window_Refresh(*args, **kwargs)
> > wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed at
> > ..\..\src\msw\ole\droptgt.cpp(542) in ConvertDragResultToEffect():
> > invalid value in ConvertDragResultToEffect
> >
> > My program behaves as expected but... I thought I should mention it....
>
> Check the return values of the On* methods you have overloaded in your
> drop target class.  One of them is probably returning something that is
> not wx.DragCopy, wx.DragLink, wx.DragMove or wx.DragNone.  Or, if you
> are always returning the suggested value passed to you, then the bug is
> probably in how that value is generated...
>

I will check that tomorrow when I get back to work... but the odd thing is
that in 2.6.* the error is not present.

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200608=
02/5cf15a62/attachment.htm


More information about the wxpython-users mailing list