TreeListCtr.SelectAll on Mac OSX throws exception
Frank Niessink
frank at niessink.com
Tue Jul 4 14:16:31 PDT 2006
Hi, the following throws an exception (assertion error actually) on
python 2.4.1/wxPython 2.6.3.2rc2 (universal) on Mac OSX Intel:
import wx
import wx.gizmos as gizmos
app = wx.App(0)
frame = wx.Frame(None)
t = gizmos.TreeListCtrl(frame)
t.AddColumn('Column 1')
root = t.AddRoot('Root')
t.SelectAll()
frame.Show()
app.MainLoop()
Running it produces the following output:
Traceback (most recent call last):
File "selectall.py", line 9, in ?
t.SelectAll()
File
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/gizmos.py",
line 878, in SelectAll
return _gizmos.TreeListCtrl_SelectAll(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "wxAssertFailure" failed in
contrib/gizmos/wxCode/src/treelistctrl.cpp(2931): invalid tree style
Should I enter a bug report?
Cheers, Frank
More information about the wxpython-users
mailing list