[wxPython-users] new error

Robin Dunn robin at alldunn.com
Wed Aug 2 08:13:18 PDT 2006


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...

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list