[wxPython-users] Traceback on Close() of a wx.Dialog
Werner F. Bruhin
werner.bruhin at free.fr
Wed Nov 1 01:11:54 PST 2006
Hi Robin,
Robin Dunn wrote:
> Werner F. Bruhin wrote:
>
>> I client of mine is reporting an exception which I can not duplicate
>> nor can I think of what is causing it.
>>
>> Maybe someone here can shed some light on this.
>>
>> The exception is:
>> Traceback (most recent call last):
>> File "dialogerror.pyo", line 475, in OnClearButton
>> File "wx\_core.pyo", line 8093, in Close
>> PyAssertionError: C++ assertion "!(lvi.mask & LVIF_STATE)" failed in
>> ..\..\src\msw\listctrl.cpp(2284): we don't support state callbacks yet!
>>
>> The code in OnClearButton is:
>> def OnClearButton(self, event):
>> self.ClearAllFiles()
>> self.Close()
>>
>> "self" is a wx.Dialog
>>
>
> Is something being done to a listctrl in ClearAllFiles?
def ClearAllFiles(self):
self.caller.sqllog.truncate(0)
self.caller.stderrlog.truncate(0)
self.caller.stdoutlog.truncate(0)
That is all in ClearAllFiles. "self.caller" is a wx.App instance and
the whole dialog does not contain any listctrl's, it just has
textctrl's, statictext, a checkbox and some buttons
Werner
More information about the wxpython-users
mailing list