[wxPython-users] new error
Robin Dunn
robin at alldunn.com
Wed Aug 2 11:58:39 PDT 2006
Peter Damoc wrote:
> On 8/2/06, *Robin Dunn* <robin at alldunn.com <mailto: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.
It could be that something is happening in a different order than
before, and in 2.6 the error is being cleared before control returns to
Python code where an exception can be raised.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list