wx.GenericDirCtrl.CollapseTree() causes attribute error

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
ianar
Experienced Solver
Experienced Solver
Posts: 51
Joined: Tue Feb 07, 2006 5:50 pm
Location: Florida
Contact:

wx.GenericDirCtrl.CollapseTree() causes attribute error

Post by ianar »

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
.
o--|==ianar
DavidHart
Site Admin
Site Admin
Posts: 4254
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Post by DavidHart »

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
Post Reply