i'm looking at the documentation:
http://wxwidgets.org/manuals/stable/wx_ ... llapsetree
and when I do:
MyGenericDirCtrl.CollapseTree()
I get :
AttributeError: 'DirControl' object has no attribute 'CollapseTree'
Any ideas? The other functions for GenericDirCtrl work perfectly.
ubuntu 7.04, wxPython 2.6.3
Thanks
wx.GenericDirCtrl.CollapseTree() causes attribute error
wx.GenericDirCtrl.CollapseTree() causes attribute error
.
o--|==ianar
o--|==ianar
Hi,
wxGenericDirCtrl::CollapseTree is relatively recent: it was new in 2.6.0. Perhaps wxPython adopted it later still.
BTW, though it wouldn't have helped you here, it often makes sense to use the manual for your version of wxWidgets, rather the latest version: so http://www.wxwidgets.org/manuals/2.6.3/wx_classref.html
Regards,
David
wxGenericDirCtrl::CollapseTree is relatively recent: it was new in 2.6.0. Perhaps wxPython adopted it later still.
BTW, though it wouldn't have helped you here, it often makes sense to use the manual for your version of wxWidgets, rather the latest version: so http://www.wxwidgets.org/manuals/2.6.3/wx_classref.html
Regards,
David