[Freewx-maint] Problem with wxpython 3.0?

Pietro Battiston me at pietrobattiston.it
Sun Dec 21 10:40:36 UTC 2014


Dear all,

(please CC me in any reply to the list),

I think I found a bug in python-wxgtk3.0, but I am by no means an
expert. So I would appreciate a quick advice.

The following code:

---------------------------------------------------------------------

import wxversion
wxversion.select('2.8')

import wx

app = wx.App(False)

frame = wx.Frame(None, wx.ID_ANY, "Title")
panel = wx.Panel(frame, wx.ID_ANY)
list_ctrl = wx.ListCtrl(panel, size=(-1,100),
                 style=wx.LC_REPORT
                 )
list_ctrl.InsertColumn(0, 'Field')
li = wx.ListItem() 
list_ctrl.InsertItem(li)
 
frame.Show()
app.MainLoop()

---------------------------------------------------------------------

works, but crashes with a "invalid item index" if I change the "2.8" to
"3.0". Am I doing anything wrong, or is this a (pretty annoying) bug?

(I have version 3.0.1.1+dfsg-2 of python-wxgtk3.0. In case anybody is
curious, I am trying to fix #773579.)

Thanks,

Pietro




More information about the Freewx-maint mailing list